为管网站选择搜索引擎? (SilverStripe 特定或一般)
我正在开发一个可以与视频网站(如 YouTube)相媲美的网站。我正处于设计阶段,正在尝试找出要采用的搜索方法。
我正在使用 SilverStripe
框架,该框架具有 Sphinx
、Solr
和 Lucene
模块,因此它们显然很有趣。另一种选择是简单地查询数据库(MySQL)而不使用任何搜索引擎。
你会怎么办?为什么?
任何意见表示赞赏!提前致谢!
I'm developing a site that could be compared with a tube site (like YouTube). I'm in the design phase and am trying to figure out what search method to go with.
I'm using SilverStripe
framework which has modules for Sphinx
, Solr
, and Lucene
so they are obviously interesting. Another option is to simply query the database (MySQL) and not use any search engine.
What would you do? And why?
Any input is appreciated! Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设您想使用MyISAM的全文搜索功能?这是可能的,SilverStripe 的默认配置当前(至少在版本 2.4 之前)设置为 MyISAM 而不是 InnoDB。然而,这仅建议用于简单、小型且不要求性能的任务 - 我认为这不是您想要的。
更强大(无论是速度还是功能方面)的是专用搜索服务。
有关一般概述,请查看 ElasticSearch、Sphinx 、Lucene、Solr、Xapian。哪个适合哪种用途? 例如。
根据您提供的详细信息,这五个人中的任何一个都应该完成您的工作,但您可能会多考虑一些。
不过,我还会考虑哪些搜索服务 SilverStripe 模块已经可用、它们满足您的要求的程度以及您“喜欢”它们的程度。例如,除非您想为 ElasticSearch 编写一个模块——那会很酷,但我不确定它是否真的值得付出努力。
就我个人而言,我可能会选择 https://code.google.com/p /lucene-silverstripe-plugin/ 因为它很容易设置并且似乎运行良好(我自己没有尝试过,但我只从其他人那里听到过关于它的好消息)。
I assume you want to use MyISAM's full-text search capabilities? This is possible, SilverStripe's default configuration is currently (at least until version 2.4) set to MyISAM and not InnoDB. However, this is only recommended for simple, small, and not performance hungry tasks - I assume that's not what you want.
More powerful (both in terms of speed and feature wise) are dedicated search services.
For a general overview, take a look at ElasticSearch, Sphinx, Lucene, Solr, Xapian. Which fits for which usage? for example.
With the details you've given, any of the five should get your job done, but you might give that some more consideration.
However, I would also take into consideration, for which search services SilverStripe modules are already available, how well they fit your requirements, and how much you "like" them. Unless you'd want to write a module for ElasticSearch for example - that would be pretty cool, but I'm not sure it's really worth the effort.
Personally, I'd probably go with https://code.google.com/p/lucene-silverstripe-plugin/ as it's easy to set up and seems to be working well (haven't tried it myself, but I have only heard good things from others about it).