L
L
linux0uid2015-09-20 10:29:16
symfony
linux0uid, 2015-09-20 10:29:16

How to properly organize search in Symfony2?

The task is to organize full-context search in Symfony2. The option to search directly in the database, even in PostgreSQL, in my case, is not an option.
In my opinion, the task should be solved using one of the search engines, such as Lucene (ElasticSearch, Solr), Sphinx. I'm leaning towards Sphinx, but one fact is confusing, and quite strongly, - the presence of a bundle for Sphinx in Symfony2. Found a few pieces on github:
https://github.com/BLEUROY-HIGHCO/SphinxBundle
https://github.com/IAkumaI/SphinxsearchBundle
But if you compare them, for example, with the corresponding external in yii2 ( https://github .com/yiisoft/yii2-sphinx) , the situation does not look very encouraging. 40 commits versus almost 5 thousand. The difference is more than 100 times.
Now a question for the connoisseurs: "Is it not fashionable to organize a search on sites written in Symfony2? :)"
But seriously, I would like to know the reason for such a gap. For example, according to ElasticSearch, the Symfony2 bundle has 4 times fewer commits than the extension in the same yii2. I sincerely hope that this only happens because bundles are 100 times easier to write in Symfony2 than extensions in yii2. But still, apparently, I'm missing something, or just after the release of yii2, everyone ran over to it;).
So the question is, what is the more appropriate way to organize searches in Symfony2?
PS I know that the number of commits is not a decisive indicator, but with such a difference... Yes, and the situation is no better for contributors.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-09-20
@linux0uid

the situation does not look very encouraging

sphinx is more popular in the CIS, elastica in the west, Yii is popular in the CIS, Symfony in the west... I somehow see a connection.
https://github.com/FriendsOfSymfony/FOSElasticaBundle - 1262 commits
https://github.com/ongr-io/ElasticsearchBundle - 681 commits
the main thing is a combination of stars, downloads and the pulse of the project.
Get elastic.

O
OnYourLips, 2015-09-20
@OnYourLips

Now a question for the connoisseurs: "Is it not fashionable to organize search on sites written in Symfony2? :)"
A very inappropriate conclusion.
Symfony does not need to include any bundle if there is a regular well-functioning library without Symfony dependencies.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question