您可以将两个
match_phrase查询包装在布尔查询的
should子句中:
{ "query" : { "bool": { "should": [ { "match_phrase" : { "title" : "phrase1" } }, { "match_phrase": { "title": "phrase2" } } ], "minimum_number_should_match": 1 } }}


