`{
"query": {
"bool": {
"must":
{
"multi_match": {
"query": " social survey",
"fields": [
"title", "abstract"
]
}
},
"filter":[
{"match_phrase": {"survey":{"query": "Aboriginal Peoples survey"}}},
{"match_phrase": {"subjects":{"query": "population characteristics"}}}
]
}
}
}`
i ended up using match_phrase because the filter query that is selected is a phrase instead of one term. so using terms even though I was able to pass multiple values i was only able to pass a term not a phrase. but now here, each query of the match_phrase is a faceted search.
Basically, i have a list of survey and list of search, user can select multiple surveys and subjects, how do I handle that.
Thanks for your patience.