【发布时间】:2019-03-25 19:13:45
【问题描述】:
我需要同时进行 multi_match 和 bool 查询,但下面的查询不起作用:(当我单独使用它们时,它们工作得很好。
{
"query": {
"multi_match": {
"query": "kotlety*",
"fields": [
"name"
]
},
"bool": {
"filter": {
"term": {
"status": 2
}
}
}
},
"size": 24
}
回复是:
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "[multi_match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 9,
"col": 5
}
],
"type": "parsing_exception",
"reason": "[multi_match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 9,
"col": 5
},
"status": 400
}
Elastic 6.6,我认为我的查询可能有错误的语法?
【问题讨论】:
标签: elasticsearch elasticsearch-6