我在我的 Kibana 控制台中运行以下 GET 查询,由于某种原因,我在响应窗口中收到如下错误:
// 错误
[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]
谁能建议为什么我不能在“应该”部分使用多个匹配块?
// 响应 - 如果我取出其中一个匹配块,它会起作用吗?
{
"error": {
"root_cause": [
{
"type": "parsing_exception",
"reason": "[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 9,
"col": 13
}
],
"type": "parsing_exception",
"reason": "[match] malformed query, expected [END_OBJECT] but found [FIELD_NAME]",
"line": 9,
"col": 13
},
"status": 400
}
// 我的查询
GET _search
{
"query": {
"bool": {
"should": [
{
"match": {
"text": "facebook advice"
},
"match": {
"profile": "facebook advice"
}
}
],
"minimum_number_should_match": 1,
"filter": {
"term": {
"accountid": "22"
}
}
}
}