# Query an index an put it into another index in Ingest plugin

**URL:** <https://discuss.elastic.co/t/query-an-index-an-put-it-into-another-index-in-ingest-plugin/119379>\
**Category:** Elasticsearch\
**Created:** [February 11, 2018, 3:16pm UTC](https://discuss.elastic.co/t/query-an-index-an-put-it-into-another-index-in-ingest-plugin/119379 "2018-02-11T15:16:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 11, 2018, 4:24pm UTC](https://discuss.elastic.co/t/query-an-index-an-put-it-into-another-index-in-ingest-plugin/119379/2 "2018-02-11T16:24:08Z")

</div>

It's super unclear...

How this query is related to the reindex operation?  
How is it related to an ingest plugin? Which one?

Then I'm not sure I'm understanding this part:

> but the problem that ES increase the number of documents in the new index continuously but in reality, I have to found the same number of documents of the original index.

And finally, please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and not the citation button. It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

---

_[View the full topic](https://discuss.elastic.co/t/query-an-index-an-put-it-into-another-index-in-ingest-plugin/119379)._
