Convert the long datatype field to string

Finally, I got the solution. Thank you very much for your support.

Below is the same.

POST _reindex?pretty
{
  "source": {
    "index": "index1.1526279922.1"
  },
  "dest": {
    "index": "index1.string.1"
  },
  "script": {
    "source": "ctx._source.inode = '' + ctx._source.inode"
  }
}
2 Likes