Facing issue while running reindex api on ES v6.6.
Please refer below shared output:
Command:
$ curl -XPOST http://<elasticsearch-svc>:9200/_reindex?pretty -H 'Content-Type: application/json' -d'
{
"source": {
"index": "dc-log-2020-11-02"
},
"dest": {
"index": "dc-log-new-index"
}
}
'
Output:
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "[dc-log-2020-11-02][dc-log-mapping][SVCz6XgBjqpvb352VFA8] didn't store _source"
}
],
"type" : "illegal_argument_exception",
"reason" : "[dc-log-2020-11-02][dc-log-mapping][SVCz6XgBjqpvb352VFA8] didn't store _source"
},
"status" : 400
}
Please suggest what could be the cause for this error and how this can be resolved.
Thanks in advance