嗨,我想知道如何从无痛脚本中提取数组长度?
{
"script": {
"lang": "painless",
"source": "what should be here???) {
"params": {
"plus": ["a","b","c"], //how to retrieve 3 as plus length?
}
}
嗨,我想知道如何从无痛脚本中提取数组长度?
{
"script": {
"lang": "painless",
"source": "what should be here???) {
"params": {
"plus": ["a","b","c"], //how to retrieve 3 as plus length?
}
}