I have an index with millions of documents and it gets new documents periodically. I created an ingest pipeline for it. But I only want it to work on the new incoming documents because previous document count is huge.
I connected my index and ingest pipeline using _reindex like this:
POST _reindex
{
"source": {
"index": "index*"
},
"dest": {
"index": "new_index",
"pipeline": "pipeline"
}
}
also my current pipeline is as follows:
{
"processors": [
{
"gsub": {
"field": "my_field",
"pattern": "regex",
"replacement": ""
}
}
]
}
This ingest pipeline tries to work on every document on the index. But I only want it to work on the new upcoming data. How can I achieve this?