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

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 and not the citation button. It will make your post more readable.

Or use markdown style like:

```
CODE
```