我在vega的body中写入如下代码:
body: {
aggs: {
mac:{
terms:{
field:mac.keyword
}
aggs:{
reqType_num:{
cardinality: {
field: reqType.keyword
}
}
result:{
bucket_selector:{
bucket_path:{
count:reqType_num
}
script:params.count==2
}
}
}
}
}
// Speed up the response by only including aggregation results
size: 0
}
报出了如下错误:
[parsing_exception] Unknown key for a START_OBJECT in [result]: [bucket_path]., with { line=1 & col=158 }
可是同样的搜索语法在dev tools 里面写就能用,谁能帮我解决一下?
body: {
aggs: {
mac:{
terms:{
field:mac.keyword
}
aggs:{
reqType_num:{
cardinality: {
field: reqType.keyword
}
}
result:{
bucket_selector:{
bucket_path:{
count:reqType_num
}
script:params.count==2
}
}
}
}
}
// Speed up the response by only including aggregation results
size: 0
}
报出了如下错误:
[parsing_exception] Unknown key for a START_OBJECT in [result]: [bucket_path]., with { line=1 & col=158 }
可是同样的搜索语法在dev tools 里面写就能用,谁能帮我解决一下?
2 个回复
medcl - 今晚打老虎。
赞同来自:
elasticStack - 90后it大数据男
赞同来自: