executing a multi-“match-phrase” query in Elastic Search
问题 this should be obvious to me but is not. The following two match only the second phrase (in this case, "Cape Basin") "query": { "match_phrase": { "contents": { "query": "St Peter Fm", "query": "Cape Basin" } } } "query": { "match_phrase": { "contents": { "query": ["St Peter Fm", "Cape Basin"] } } } while the following croaks with an error "query": { "match_phrase": { "contents": { "query": "St Peter Fm" }, "contents": { "query": "Cape Basin" } } } I want to match all documents that contain