I'm creating an ElasticSearch native script, and I'm struggling to get a List<String> value of some field in my doc.
Here is what I tried:
List<String> tmp = ((ScriptDocValues.Strings) doc().get("my_field")).getValues();
And here is the exception thrown:
java.lang.NoSuchMethodError: org.elasticsearch.index.fielddata.ScriptDocValues$Strings.getValues()Lorg/elasticsearch/index/fielddata/util/StringArrayRef;
I can't figure out why it doesn't work, given the code of this module...