I am executing the following query to increase exact match on multi_match in search mode. But not getting the expected results.
My goal is to upgrade in the following order: "java developer"> java AND developer> java OR developer
Can anyone help with troubleshooting? You need to know how I can increase the value of match_phrase here and how to add the remaining fields to 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 } } ] } }
Many thanks for your help.
elasticsearch lucene
Vishal sharma
source share