I have an elastic query that contains a multi-match query in it..
"multi_match" => [
"query" => "Will Smith"
"type" => "best_fields"
"fields" => [
"title^10",
"description^7",
"keywords",
"name"
]
"operator" => "and"
]
I want to Add two function-score query for multi-match query...
and give a higher weigh to multi-match query with phrase
type.. and a less weigh to multi-match query that has best_fields
type...
I mean the documents that has the keyword exactly like what I searched must have higher _score
I wrote the query and function_score in a bool and must query... but the result did not changed..
does anyone any idea how to manage my query to get better results?
thanks.