Compound multi_match query


(Chris Marino) #1

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!


(system) #2

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