# MongoDb vs Elastic Search for text based search in a collection

**URL:** <https://discuss.elastic.co/t/mongodb-vs-elastic-search-for-text-based-search-in-a-collection/307146>\
**Category:** Elasticsearch\
**Created:** [June 14, 2022, 11:37am UTC](https://discuss.elastic.co/t/mongodb-vs-elastic-search-for-text-based-search-in-a-collection/307146 "2022-06-14T11:37:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Girish\_V](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/girish_v/32/107006_2.png) [@Girish\_V](https://discuss.elastic.co/u/Girish_V)\
**Post date:** [June 14, 2022, 11:37am UTC](https://discuss.elastic.co/t/mongodb-vs-elastic-search-for-text-based-search-in-a-collection/307146/1 "2022-06-14T11:37:48Z")

</div>

We are trying to weighing the benefits of using Elasticsearch for text based search on MongoDb  
Vs  
reading data in mongodb using text based indexes available in mongodb( app also have Redis cache)

Our Collection in the Mongodb includes documents that have data stored in html format  
However the search is not within the html content.  
We have other fields that include a topic name in each of the documents .  
Topic name is searched to get the correct html content based on user entered text  
We also have plans to use redis cache and the application would read redis cache for performance perspective

Any suggestions ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 12, 2022, 11:37am UTC](https://discuss.elastic.co/t/mongodb-vs-elastic-search-for-text-based-search-in-a-collection/307146/2 "2022-07-12T11:37:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
