Hi,
During reindex call is it possible to access current object in destination that is going to be overridden?
What I'm trying to achieve is this:
POST _reindex
{
"source": {
"remote": {
"host": "https://example.com:443"
},
"index": ["index-2019.03.30", "index-2019.03.27", "index-2019.03.28"],
"query": {
"match_all": {}
}
},
"dest": {
"index": "my-index-new"
},
"script": {
"source": "if (ctx._source.timestamp < current_object_in_dest._source.timestamp) {ctx.op = 'noop'}",
"lang": "painless"
}
}
If no is there some other way to query destination from reindex script?