Live data from Hacker News

Ask HN: Why should I use Elasticsearch instead of building from scratch

news.ycombinator.com

1–10 of 39 posts

Re: Ask HN: Why should I use Elasticsearch instead of building from scratch

#4
You should write one from scratch to get a deeper understanding of how hard it is to return highly relevant results quickly. Tokenizing, stemming, bag of words, and tf-idf for ranking get you to an MVP, but then you realize how good production grade search engines are today.

Solr is good. I've been wanting to try Lunr [1] for small sites.

[1]: https://github.com/olivernn/lunr.js

Re: Ask HN: Why should I use Elasticsearch instead of building from scratch

#8
Elasticsearch is incredibly deep, and highly performant. If all you need is simple full text search then rolling your own can be an interesting exercise, but I can't imagine the amount of hours it would take to replicate the features I use on a daily basis.

Re: Ask HN: Why should I use Elasticsearch instead of building from scratch

#10
post #7

With that little information from the OP the answer is probably: Use ES or if it's a small side project use your DB's included full text search if it's good enough.

You can go far using purely Postgres full text search. I ported a site from Solr to PG full text because of strange syncing issues and it was just as fast.

Afterwards I never really saw the point of any of the search systems other than elastic search because the streaming capabilities that it gives you.

Post reply on HN