Hey,
we are currently looking into reindexing our indices and adding a new field which is the hash fingerprint of a larger field. Our approach is to pass the script to the reindexing api, but it won't work.
Our request:
{
"source": {
"index": "source"
},
"dest": {
"index": "destination"
},
"script": {
"lang": "painless",
"source": "ctx._source['hashfield'] = ctx._source['data'].sha256()"
}
}
But we are facing the following error: dynamic method [java.lang.String, sha256/0] not found
, but according to that PR - this should be working? Any ideas how to tackle this?
Best, Hannes