0
在elasticsearch,我构建过滤查询,以便找到包含都一个短语和长期文件。以下查询不起作用。它似乎返回结果与查询数组中的项目,但似乎有应用'或'运算符。Elasticseach:匹配短语和长期
编辑:由于我使用PHP,以下示例是一个php数组。
'query' => [
'filtered' => [
'query' => [
'match' => [
"post_content" => [
'query' => ['ambulance services', 'veteran'],
'operator' => 'and',
'type' => 'phrase'
]
]
],
'filter' => [
...
]
]
]
你能张贴您的映射,以及几样文档(你期望返回的那些)? –