【发布时间】:2018-04-25 00:29:22
【问题描述】:
{
"from":0,
"size":1000,
"query": {
"bool": {
"must": [
{
"query": {
"multi_match": {
"query": "shampoo",
"fields": ["summary.exact", "promotionid.basic"],
"type": "cross_fields",
"minimum_should_match" : "100%"
}
}
},
{
"bool": {
"should": [
{"term": {"is_non_ecomm": "1"}}
],
"must": [
{"term": {
"iscouponactive": "1"
}}
]
}
}
]
}
}
}
我正在从 2x 迁移到 5x,但我的查询失败了。这是我得到的错误:
[multi_match] 格式错误的查询,应为 [END_OBJECT] 但找到 [FIELD_NAME]","line":32,"col":13}],"type":"parsing_exception","reason":"[multi_match]格式错误的查询,应为 [END_OBJECT],但找到了 [FIELD_NAME]","line":32,"col":13}
【问题讨论】:
标签: elasticsearch