Hello,
I am trying to do a multi match query with a boost from a field: "point"
My mapping look like that:
PUT Video
{
"settings" : {
"number_of_shards" : 8
},
"mappings" : {
"_doc" : {
"properties" : {
"id" : { "type" : "long" },
"name" : { "type" : "text" },
"original_uploader" : { "type" : "text" },
"view" : { "type" : "long" },
"good_point" : { "type" : "long" },
"bad_point" : { "type" : "long" },
"category" : { "type" : "text" },
"theme" : { "type" : "text" }
}
}
}
}
and current query:
POST video/_search
{
"query": {
"multi_match": {
"query": "the query",
"type": "best_fields",
"fields": [
"name",
"category",
"theme"
],
"tie_breaker": 0.3,
"fuzziness": "AUTO"
}
}
}
So when I search for a video I would like a query which search in the "name" "Theme" and "category" field but also take the "view" "good_point" "bad_point" as a boost or a malus.
Is there any build-in method in elasticsearch to do that?
Best regards,
Vincent