How can I compose a multi-match phrase
query that also boosts one of the phrases? I can write a multi-match query using multiple phrases, and I can write a multi-match query that boosts single keywords, but I'd like to do both simultaneously.
Boosting one keyword
I can boost one keyword in a multi-match query.
GET _search
{
"query": {
"multi_match": {
"query": "quick^2 brown fox",
"fields": [ "title", "summary" ]
}
}
}
Accept multiple phrases
I can look for multiple phrases in a single multi-match clause.
GET _search
{
"query": {
"multi_match": {
"query": [ "quick fox", "brown fox" ],
"fields": [ "title", "summary" ]
}
}
}
The question remains
How can I do both of the above in one clause?