# Design Decision on Elastic Search - Replace Searchable Entity on Primary DB

**URL:** <https://discuss.elastic.co/t/design-decision-on-elastic-search-replace-searchable-entity-on-primary-db/281551>\
**Category:** Elasticsearch\
**Created:** [August 16, 2021, 1:32pm UTC](https://discuss.elastic.co/t/design-decision-on-elastic-search-replace-searchable-entity-on-primary-db/281551 "2021-08-16T13:32:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CharlieUPB](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charlieupb/32/93221_2.png) [@CharlieUPB](https://discuss.elastic.co/u/CharlieUPB)\
**Post date:** [August 16, 2021, 1:32pm UTC](https://discuss.elastic.co/t/design-decision-on-elastic-search-replace-searchable-entity-on-primary-db/281551/1 "2021-08-16T13:32:01Z")

</div>

Hi guys I cant seem to find an answer to this question, can you please clarify my question.

I have a normal database such as mongo where I store my domain related data, customers, products, prices.

Now I came with the request of having search functionality over AN EXISTING entity (let's say products) Do I need to store product entity in both elastic search and my domain/primary database? Or elastic search will completely replace the need of storing the same entity in my primary db?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 17, 2021, 1:00am UTC](https://discuss.elastic.co/t/design-decision-on-elastic-search-replace-searchable-entity-on-primary-db/281551/2 "2021-08-17T01:00:16Z")

</div>

Welcome to our community! 😃 We aren't all guys though.

> [@CharlieUPB](#):
>
> Now I came with the request of having search functionality over AN EXISTING entity (let's say products) Do I need to store product entity in both Elasticsearch and my domain/primary database? Or Elasticsearch will completely replace the need of storing the same entity in my primary db?

That's really up to you and your business requirements and the resources you have available for the project.

eg I understand that Mongo has some search capabilities, will they fulfil your project requirements? Are you happy using Elasticsearch as your primary datastore, and making the code changes to accomodate that? Likewise, are you happy making the changes to search Elasticsearch and still talk to Mongo?

I know that sounds like I am suggesting you not use Elasticsearch, but at the end of the day you need to factor in more than "can I do it".

---

<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:** [September 14, 2021, 1:00am UTC](https://discuss.elastic.co/t/design-decision-on-elastic-search-replace-searchable-entity-on-primary-db/281551/3 "2021-09-14T01:00:41Z")

</div>

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