Multiple word searching with Ruby, and MySQL

前端 未结 4 1516
被撕碎了的回忆
被撕碎了的回忆 2021-01-15 11:06

I\'m trying to accomplish a multiple word searching in a quotes database using Ruby, ActiveRecord, and MySQL. The way I did is shown bellow, and it is working, but I would l

4条回答
  •  离开以前
    2021-01-15 11:27

    The better way to do it would be to implement full text searching. You can do this in MySQL but I would highly recommend Solr. There are many resources online for implementing Solr within rails but I would recommend Sunspot as an entrance point.

提交回复
热议问题