# Inserting Data in ES Index which already contain data .?

**URL:** <https://discuss.elastic.co/t/inserting-data-in-es-index-which-already-contain-data/61806>\
**Category:** Elasticsearch\
**Created:** [September 29, 2016, 12:02pm UTC](https://discuss.elastic.co/t/inserting-data-in-es-index-which-already-contain-data/61806 "2016-09-29T12:02:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sukesh/32/10890_2.png) [@sukesh](https://discuss.elastic.co/u/sukesh)\
**Post date:** [September 29, 2016, 12:02pm UTC](https://discuss.elastic.co/t/inserting-data-in-es-index-which-already-contain-data/61806/1 "2016-09-29T12:02:08Z")

</div>

Hi Guys ,

i have an ES Index , which contains thousands of data inside it with three layers . like parent child relation wise.

A ----\>B -----\>C

A is the parent of B , B is the parent of C, we have data in three levels which is interlinked with each other. now i want to add new data in B level, is it possible?

Now if i want add new data , again i am creating a new INDEX and inserting into it. so what should i do to avoid this ! cannt i use same Index again in ES?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [September 29, 2016, 2:21pm UTC](https://discuss.elastic.co/t/inserting-data-in-es-index-which-already-contain-data/61806/2 "2016-09-29T14:21:55Z")

</div>

Adding new data at the B level is possible, however it needs to be added to the same index as Elasticsearch does not support cross-index joins.

---

<div class="post-metadata">

**Author:** ![sukesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sukesh/32/10890_2.png) [@sukesh](https://discuss.elastic.co/u/sukesh)\
**Post date:** [September 30, 2016, 8:46am UTC](https://discuss.elastic.co/t/inserting-data-in-es-index-which-already-contain-data/61806/3 "2016-09-30T08:46:43Z")

</div>

Hi @jpountz

Thanks for your kind reply , so your are saying that by using update query we can add the data in B level ,rite?

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [October 3, 2016, 9:03pm UTC](https://discuss.elastic.co/t/inserting-data-in-es-index-which-already-contain-data/61806/4 "2016-10-03T21:03:48Z")

</div>

Well, yes, you can add data at any level. But the fact it sounds surprising to you makes me wonder whether I actually understood your question. If you have a minimal recreation that does not work, feel free to share so that I can look into.

---

<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, 10:15pm UTC](https://discuss.elastic.co/t/inserting-data-in-es-index-which-already-contain-data/61806/5 "2017-07-05T22:15:18Z")

</div>


