Hi,
I have an index with analyzed parameter, what I want to do is duplicate this parameter into new not analyzed raw field of this param.
I have created the new mappings with the new raw field of that parameter.
When I reindex with
"script": "ctx.volname.raw.value = ctx._source.volname"
I get "Cannot get property 'raw' on null object"
What is the correct way to do this and where can I learn more about how to use fields and debug scripting. Language is groovy and elastic version is 2.4.
Thanks