News for hackers. Stuff that matters.
Re:Ask HN: Are Lucene/Solr/ES Still Used for Search? by hiram112 on Friday July 19, 2019 @11:27PM (#20484017)
Can you explain a bit why ES isn't a good solution for storing data itself?

I inherited a legacy Mongo solution, and all the data is duplicated and indexed in ES, so I've always wondered why we're using both. Mongo has none of the SQL capabilities that would make my life easier, and the types of queries allowed by Mongo could be done with ES.

What are the negatives of ES alone?

Re:Ask HN: Are Lucene/Solr/ES Still Used for Search? by manigandham on Saturday July 20, 2019 @12:46AM (#20484221)
It's not reliable: https://www.quora.com/Why-shouldnt-I-use-ElasticSearch-as-my...

The v7 upgrade to a new cluster protocol (zen2) has improved things but overall the system has a long history of losing or destroying data. It's better to have a primary OLTP system that's ACID and reliable while using ES as the secondary search source. You can also remove the _source field if you just need matches without the original content.

It's common to see pattern used with a relational database since, as you can see, Mongo doesn't buy you much else as another document-store.

Re:Ask HN: Are Lucene/Solr/ES Still Used for Search? by hiram112 on Friday July 26, 2019 @01:05PM (#20536304)
Thank you very much. It seemed like we were just duplicating a bunch of scheme-less json for no reason, but if ES can lose data, that's probably not a good idea.
Re:Ask HN: Are Lucene/Solr/ES Still Used for Search? by manigandham on Saturday July 20, 2019 @05:40PM (#20488548)
Follow up: MongoDB is adding full-text search capabilities: https://www.youtube.com/watch?v=4QUGWnz-XaA