【发布时间】:2021-04-25 12:33:52
【问题描述】:
我是 ES 新手,我正在使用 ES 7.10.1,我有以下简单的搜索请求:
GET /megacorp/_doc/_search
{
"query":{
"filtered":{
"filter":{
"range":{
"age":{
"gt":30
}
}
},
"query":{
"match":{
"last_name":"smith"
}
}
}
}
}
当我在 Kibana 开发工具中运行上述查询(使用查询和过滤器)时,出现如下异常,请问如何解决这个问题,谢谢。
{
"error" : {
"root_cause" : [
{
"type" : "parsing_exception",
"reason" : "unknown query [filtered]",
"line" : 3,
"col" : 14
}
],
"type" : "parsing_exception",
"reason" : "unknown query [filtered]",
"line" : 3,
"col" : 14,
"caused_by" : {
"type" : "named_object_not_found_exception",
"reason" : "[3:14] unknown field [filtered]"
}
},
"status" : 400
}
【问题讨论】:
-
这个答案可能会有所帮助:stackoverflow.com/questions/40519806/…
标签: elasticsearch