# Elastic with mongodb recommended architecture

**URL:** <https://discuss.elastic.co/t/elastic-with-mongodb-recommended-architecture/28594>\
**Category:** Elasticsearch\
**Created:** [September 3, 2015, 10:05am UTC](https://discuss.elastic.co/t/elastic-with-mongodb-recommended-architecture/28594 "2015-09-03T10:05:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edeak](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@edeak](https://discuss.elastic.co/u/edeak)\
**Post date:** [September 3, 2015, 10:05am UTC](https://discuss.elastic.co/t/elastic-with-mongodb-recommended-architecture/28594/1 "2015-09-03T10:05:05Z")

</div>

Hi Guys,

I would like to use mongodb with elastic but without mongo river.  
I found different plugins such as mongoose and 10gen-labs mongo-connector but is there any solution in java?  
I would not use Mongodb-River, rather I'd create some tricky architecture. (I think it can be done if elastic stores only the index values and ids which point into mongodb. Then if the user runs a query elastic will provide related ids (very quickly) then I can query over the proper collection with the given ids which is also very fast)

What is your opinion?

Thanks!

---

<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 5, 2017, 11:52pm UTC](https://discuss.elastic.co/t/elastic-with-mongodb-recommended-architecture/28594/2 "2017-07-05T23:52:20Z")

</div>


