# Compound multi\_match query

**URL:** <https://discuss.elastic.co/t/compound-multi-match-query/67620>\
**Category:** Elasticsearch\
**Created:** [November 30, 2016, 1:34pm UTC](https://discuss.elastic.co/t/compound-multi-match-query/67620 "2016-11-30T13:34:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marinoc](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@marinoc](https://discuss.elastic.co/u/marinoc)\
**Post date:** [November 30, 2016, 1:34pm UTC](https://discuss.elastic.co/t/compound-multi-match-query/67620/1 "2016-11-30T13:34:52Z")

</div>

All - Is there a way to support a multi\_match query like this using a single query clause? Or does it have to be broken up into multiple clauses (by adding some logic to the app to parse the user input)?

User input : "quick brown" black "red fox"

I'd like to use something like this but it doesn't appear to work (disregards the ")

"query":{  
"multi\_match":{  
"query": ""quick brown" black "red fox"",  
"type":"best\_fields",  
"fields":[  
"field1",  
"field2",  
"field3"  
]  
}  
},

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 28, 2016, 1:35pm UTC](https://discuss.elastic.co/t/compound-multi-match-query/67620/2 "2016-12-28T13:35:16Z")

</div>

Closed on December 28, 2016, 1:35pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
