i need the POSITIONS info, it's ok to get it by the groovy language:
"script": {
"inline": "def s = 0;termInfo=_index['goods_name_separate'].get('book',_POSITIONS| _CACHE);for(pos in termInfo){s++; break;}; return s;",
"lang": "groovy"
}
but how to access the _index object through painless and java?
i got compile error when turning lang to painess.
i am using 5.1.2.