Solre or Sphinx? what's better?

Possible duplicate:
Choosing a standalone full-text search engine: Sphinx or SOLR?

I will use it for full-text search in my ruby ​​on rails application.

which is the best choice.

solr use java to do this work. or sphix in ruby?

+4
source share
7 answers

I have no experience with Solr, but Sphinx is easy to install, it works fast and fine with Thinking Sphinx: http://freelancing-god.github.com/ts/en/indexing.html

There is also a good railscast: http://railscasts.com/episodes/120-thinking-sphinx

This guy gives you a few reasons why go with Sphinx: http://jamesgolick.com/tags/ultrasphinx.html (He uses the Ultrasphinx plugin to connect Rails and Sphinx. I tried both using Thinking Sphinx)

Here you can find a comparison of both plugins: http://reinh.com/blog/2008/07/14/a-thinking-mans-sphinx.html

+6
source

Solr can be implemented in Java, but this is basically an implementation detail. Sphinx is based on C ++; do you know c ++? LucidImagination provides a convenient LucidWorks for Solr , which will make the deployment for those who are not familiar with Java. Ironically, Solr has better Ruby integration than Sphinx. There acts_as_solr , which connects to ActiveRecord, and at a pure ruby ​​level there are a couple of great options, but this is not your precedent. You can use rails, but no matter which language on your server side is selected, you can consider using AJAX-Solr and it got a fantastic demo . Finally, Solr is definitely a larger project than Sphinx, with more history and information to help you, including in my book . LucidImagination offers a free PDF reference.

+3
source

Although sphinx has Craigslist, Solr has http://www.lucidimagination.com/why-lucid/who-uses-lucene-solr

So, I think the answer is perfectly clear.

+2
source

I tried both, and they are both great. As far as I know, solr requires java (since it is based on lucene), and sphinx does not. That is why I go with the sphinxes if I have no good reason to want solr specifically.

+1
source

My experience was for small data, thinking sphinx (or ultra) was a simple search solution for use by a developer who just wanted to run something. As soon as the data is larger than they say, one hundred thousand lines in db, both plugins show how strongly they are connected with the active record. Then you need to balance the delicate dance between when the sphinx index is executed (in cron, in deployment, etc.). How often indexing is performed, delta indexing is used and how long does it take to index. In addition, as soon as your data becomes more complicated about how and what results should be presented in the search, you begin to feel that the sphinx’s customization is limiting.

We are in the process of moving the search from the sphinx plugin to something independent of the development and deployment life cycle of our active record models. We have not decided whether we will continue to use the sphinx or switch to solr. We just want the search and indexing to be separated from the model and pull in our own service, which our application with rails speaks of.

0
source

I used both in different projects. I would stay with solr as it was easier to install: but this is just my experience. You can get more information here .

0
source

I am also trying to compare Solr / Sphinx and find another way that they differ. These are the search functions:

  • strict order operator
  • INVITATION / PARAGRAPH Search

If these features are important in the context of your development, take a look.

0
source

Source: https://habr.com/ru/post/1308217/


All Articles