I upgraded my ES to version 7.1 and ofcourse I ran into issue, where Scripted Fields cant have empty doc fields anymore.
My scripted field is concating 3 fields and last one of might be sometimes missing.
Could someone reach an helping hand and help me converting the script so that it would work with 7.1 ES?
The script itself:
doc['field1.keyword'].value + ':' +
doc['field2.keyword'].value + ':' +
doc['field3.keyword'].value
I tried implementing the if statement, but it went to total garbage. As I said field3 is sometimes missing from doc.