Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django haystack: which search engine would be better

I'm building a Django project that needs a good search functionality

Which of the search engines out of these would be good to use with django haystack

  • solr
  • elasticsearch
  • Xapian

One other advice I need is should I prefer going with above or use django-elasticsearch?

like image 371
Neo Avatar asked Mar 03 '12 16:03

Neo


People also ask

What is haystack search engine?

But first, what exactly is Haystack? Simply put, it is an awesome library to build production ready, scalable search systems and question answering systems. It utilises the latest transformer models thus proving to be one of the best possible NLP toolkits to both researchers and developers.

What is ElasticSearch Django?

ElasticSearch indexes documents for your data instead of using data tables like a regular relational database does. This speeds up search, and offers a lot of other benefits that you don't get with a regular database.

What is Django haystack?

Haystack provides modular search for Django. It features a unified, familiar API that allows you to plug in different search backends (such as Solr, Elasticsearch, Whoosh, Xapian, etc.) without having to modify your code.


1 Answers

Personally, I've used both Solr and ElasticSearch with with django haystack and have been happy with the results from both. Solr seemed to have a slightly steeper learning curve, but it wasn't enough to be a deal breaker. If you have a cloud-based implementation in mind for your project, you may want to go with ElasticSearch as it features distributed indexing and some other useful features that kind of environment. I don't have any experience with Xapian, so I won't mislead you with any information there.

You may want to check out this post from the creator of ElasticSearch https://stackoverflow.com/a/2288211/1608085 (yes, it will be a bit biased)

Also check out this previous answer for a comparison of Solr and ElasticSearch https://stackoverflow.com/a/10213568/1608085

like image 168
smang Avatar answered Sep 28 '22 07:09

smang