是否可以像这样在弹性搜索中使用构面脚本和构面过滤器?
{
"facets": {
"judges": {
"terms": {
"field": "judges.untouched",
"size": 10,
"all_terms": false,
"script": { "script": "...", "params": { }}
},
"global_facets": false,
"facet_filter": {
"and": [
{
"query": {
"query_string": {
"query": "..... ",
"fields": [
"judges.analyzed"
],
"default_operator": "and",
"analyze_wildcard": true
}
}
}
]
}
}
}
}
因为当我运行此查询时,elasticsearch 会引发错误:Parse Failure [No facet type found for [and]]]; }。
谢谢