dpbtbcz6650 2018-05-14 19:08
浏览 66

为什么独立搜索(Sphinx,Solr)而不是内置包?

I have a pretty basic use case: we want to fuzzysearch a mysql table based on one column, lets say it's a name column. E.g. this is my users table and I want to be able to find a user named "John Doe" if I search "Jon" or "Doe Jo" or "John" etc.

Coming from javascript land, there are quite a few packages out there that are just plug and play; add the package to our project and voila, we have can fuzzy search javascript objects using a simple api. Of course this involves no datastore, all of the data we want to search is already in a javascript object.

Now I'm trying to wrap my head around search with php + mysql, and it seems standalone options like Solr and Sphinx are popular. My question is, why? Are there not any good packages I can find on Packagist that are just "plug and play", which will search a particular table/column (I've looked, haven't found any, and the top results for "search" include Elastisearch, Solr, Sphinx)? If not, why not?

Thanks for your help

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信小程序协议怎么写
    • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看