选择独立的全文搜索服务器:Sphinx还是SOLR? [英] Choosing a stand-alone full-text search server: Sphinx or SOLR?

查看:126
本文介绍了选择独立的全文搜索服务器:Sphinx还是SOLR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找具有以下属性的独立全文搜索服务器:




  • 必须作为独立服务器运行,可以提供来自多个客户端的搜索请求

  • 必须能够通过索引SQL查询的结果来执行批量索引:说SELECT id,text_to_index FROM documents;

  • 必须是免费软件,并且必须在Linux上以MySQL作为数据库运行

  • 必须快速(排除MySQL内部全文搜索) li>


我发现有这些属性的替代品是:


  • Solr(基于Lucene)
  • ElasticSearch(也基于Lucene)

  • Sphinx



我的问题:


I'm looking for a stand-alone full-text search server with the following properties:

  • Must operate as a stand-alone server that can serve search requests from multiple clients
  • Must be able to do "bulk indexing" by indexing the result of an SQL query: say "SELECT id, text_to_index FROM documents;"
  • Must be free software and must run on Linux with MySQL as the database
  • Must be fast (rules out MySQL's internal full-text search)

The alternatives I've found that have these properties are:

  • Solr (based on Lucene)
  • ElasticSearch (also based on Lucene)
  • Sphinx

My questions:

  • How do they compare?
  • Have I missed any alternatives?
  • I know that each use case is different, but are there certain cases where I would definitely not want to use a certain package?

解决方案

I've been using Solr successfully for almost 2 years now, and have never used Sphinx, so I'm obviously biased. However, I'll try to keep it objective by quoting the docs or other people. I'll also take patches to my answer :-)

Similarities:

  • Both Solr and Sphinx satisfy all of your requirements. They're fast and designed to index and search large bodies of data efficiently.
  • Both have a long list of high-traffic sites using them (Solr, Sphinx)
  • Both offer commercial support. (Solr, Sphinx)
  • Both offer client API bindings for several platforms/languages (Sphinx, Solr)
  • Both can be distributed to increase speed and capacity (Sphinx, Solr)

Here are some differences:

Related questions:

这篇关于选择独立的全文搜索服务器:Sphinx还是SOLR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆