I have faced a issue while using Custom script in java using the AbstractDoubleSearchScript for IPV6 data type.
@Override
public Object run() {
ScriptDocValues ipv6_docValue = doc().get("src_v6");
log.info(" IPV6 value :-" +ipv6_docValue.getValues().get(0).toString());
}
I am getting the IP value as follows in ScriptDocValues,
IPV6 Value:- $Ā
But it's stored in indices like "src_v6" : "2406:c400::"
How can i iterate value, is anything i have missed.