环境:mac os, 最新的 symphony 代码 , ES 版本为 Version: 7.8.0
操作:在 web 界面尝试搜索
现象:404 错误, debug 代码,发现 ES 返回的 response 提示错误
请求
{"highlight":{"number_of_fragments":3,"fields":{"articleContent":{}},"fragment_size":150},"size":60,"query":{"and":{"filter":[{"term":{"articleStatus":0}}],"query":[{"or":[{"match":{"articleContent":"测试"}},{"match":{"articleTitle":"测试"}}]}]}},"from":1,"sort":[{"articleCreateTime":"desc"},"_score"]}
响应
{"error":{"root_cause":[{"type":"parsing_exception","reason":"unknown query [and]","line":1,"col":116}],"type":"parsing_exception","reason":"unknown query [and]","line":1,"col":116,"caused_by":{"type":"named_object_not_found_exception","reason":"[1:116] unknown field [and]"}},"status":400}
问题:没用过 ES,是不是 symphony 跟 ES7.8 不兼容啊