4 ms·
On ElasticSearch you have to update the whole document, no commands to manipulate them. You don't have commands like: $set, $addToSet, $pop, etc.. You need to
by alisson 13y ago
On ElasticSearch you have to update the whole document, no commands to manipulate them. You don't have commands like: $set, $addToSet, $pop, etc..
You need to have a good understanding of how tokenizers and analyzers work to be able to create good results for your data. I have difficulties matching documents with the exact title being searched for. On MongoDB that just works, on ElasticSearch you need to configure it.
ElasticSearch has some advantages and MongoDB others. I think they are great together. One for storage and the other for searching.
- polyfractal 13y agoRegarding updates, you can use the Update API for partial updates, and include a script to do things like "counter += 1" or "add value to existing array". Internally it is still reindexing the entire document, but from your application's perspective, the Update API is a lot friendlier. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-update.html http://www.elasticsearch.org/guide/en/elasticsearch/referenc...
- alisson 13y agoThanks for pointing that out, it will be really useful!
- xtracto 13y ago>You need to have a good understanding of how tokenizers and analyzers work to be able to create good results for your data. This is really important. Creating a proper searching experience with auto-complete which works "just like you want" can be a very painful experience with ES, specially if you are new to ES. It bite me some time ago when I was trying to achieve just that.
- hkon 13y agoCare to elaborate? What were the steps you had to go through?
- scorpion032 13y agoIf for storage of data, I'd use and only use a RDBMS like Postgres. Not Mongo.