Custom Script - Native Script IPV6 data type

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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.