I have an existing indice and want to multiply this data with a small modification to it, simply increment a few fields, but the rest of the data can remain the same. Hence, I am not looking to actually change the mappings of the indice, but simply to copy it on top of what's existingly there.
This way I could just restore the data from a SNAPSHOT with 2x shard count before re-indexing onto itself. I was wondering that since there isn't any mapping modification, would it be possible to index an indice onto itself?
Something that would look like this:
POST <index>/<index_type>/_reindex
{
"source": {
"index": "<index_name>"
},
"dest": {
"index": "<index_name>",
},
"script": {
"source": """
ctx._source.bene_acc_no += '21';
ctx._source.orig_acc_no += '21';
ctx._source.owner_acc_no += '21';
"""
"lang": "painless"
}
}
If this is not possible
Thank you in advance for your help.