I am running a following query to boost exact match over multi_match in elastic search. But, not getting the expected results.
My goal is to boost in following order: "java developer" > java AND developer > java OR developer
Can someone help in troubleshooting this? Need to know how do I give boost to match_phrase here and how to add remaining fields in match_phrase
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "java developer",
"fields": [
"title",
"content",
"tags",
"summary"
]
}
}
],
"should": [
{
"match_phrase": {
"title": "java developer"
}
},
{
"multi_match": {
"query": "java developer",
"fields": [
"title",
"content",
"tags",
"summary"
],
"operator": "and",
"boost": 4
}
}
]
}
}
Thanks so much for your help.