为什么es5.4用missing这个过滤报错呢,是废弃了嘛
匿名 | 发布于2017年08月04日 | 阅读数:8210
GET /my_index/posts/_search?pretty
{
"query" : {
"constant_score" : {
"filter": {
"missing" : { "field" : "tags" }
}
}
}
}
---------------------------------分割线------以上是查询语句-------------下面是报错信息-------------------------
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "no [query] registered for [missing]",
"line": 9,
"col": 29
}
],
"type": "parsing_exception",
"reason": "no [query] registered for [missing]",
"line": 9,
"col": 29
},
"status": 400
}
{
"query" : {
"constant_score" : {
"filter": {
"missing" : { "field" : "tags" }
}
}
}
}
---------------------------------分割线------以上是查询语句-------------下面是报错信息-------------------------
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "no [query] registered for [missing]",
"line": 9,
"col": 29
}
],
"type": "parsing_exception",
"reason": "no [query] registered for [missing]",
"line": 9,
"col": 29
},
"status": 400
}
1 个回复
novia - 1&0
赞同来自: laoyang360