Hey ElasticSearch Community,
I indexed documents of the following structure to ElasticSearch
"mappings" => [
"properties" => [
"title" => [
"type" => "text"
],
"tags" => [
"type" => "text"
],
]
]
now I try to run a multi_match query against my index like so:
"must" => [
"multi_match" => [
"query" => "awesome dishwasher",
"operator" => "or",
"fields" => [
"tags",
"title",
]
]
]
I expect the query to return documents that contain either "awesome" or "dishwasher" or both of the words in either the title field or the tag field.
I expect the query to score documents, which contain both words, higher than documents that contain only one of the words.
For some reason the document scoring is not like I expect it to be. Can you give me a hint what I'm doing wrong here, and explain, what I have to do different.
Best regards, Internet Media