Hello,
There is my query :
"query" => [
"bool" => [
"must" => [
"match" => [
"name" => [
"query" => $request->research,
"boost" => 50,
]
],
],
"should" => [
"multi_match" => [
"type" => "cross_fields",
"fields" => ["villes^50", "sessions^50"],
"query" => $request->research,
"operator" => "OR",
]
]
]
]
i'm making a research on multiple keywords, I would like to know why the highest score is not the one with the most keywords. Imagine i type 'computer programming' and 'computer' the computer one will come first in research, why the score is not automatically on the field that has the most keywords and how to fix it? (on the name field especially, the should boolean query is not concerned in my case)
Thanks a lot