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 :-
synchronising mongodb database elasticsearch.
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.
- 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.
- mongodb search slow compared elasticsearch. indexing in mongodb takes more time , more resources.
Comments
Post a Comment