elasticsearch - Which approach of search is feasible (elastic search + mongoDB) or mongoDB text indexes -


in project have implement text search , and have choose feasible approach among 2 :-

  1. synchronising mongodb database elasticsearch.

  2. mongodb's own text indexes has elastic search text searching capabilities.

i have gone through many articles provide pros of each of cases haven't found relevant document provides comparison between 2 approaches , approach better other or limitation specific approach.

note:- using node.js express.js.

mongodb general purpose database, elasticsearch distributed text search engine backed lucene. can store data in mongodb , use elasticsearch exclusively its' full-text search capabilities. according use case, can send subset of mongo data fields elastic.

  1. synchronization of mongodb elasticsearch can done mongoosastic. can solve data safety concern persisting in mongo , speed search using elasticsearch. can use python script using elasticsearch.py package sync mongo , elasticsearch.
  2. mongodb search slow compared elasticsearch. indexing in mongodb takes more time , more resources.

Comments

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -