# Multi Match Query with a point field boosting

**URL:** <https://discuss.elastic.co/t/multi-match-query-with-a-point-field-boosting/155310>\
**Category:** Elasticsearch\
**Created:** [November 4, 2018, 5:47pm UTC](https://discuss.elastic.co/t/multi-match-query-with-a-point-field-boosting/155310 "2018-11-04T17:47:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_de\_Cursay](https://avatars.discourse-cdn.com/v4/letter/v/ec9cab/32.png) [@Vincent\_de\_Cursay](https://discuss.elastic.co/u/Vincent_de_Cursay)\
**Post date:** [November 4, 2018, 5:47pm UTC](https://discuss.elastic.co/t/multi-match-query-with-a-point-field-boosting/155310/1 "2018-11-04T17:47:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jaspreet\_Singh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jaspreet_singh/32/58296_2.png) [@Jaspreet\_Singh](https://discuss.elastic.co/u/Jaspreet_Singh)\
**Post date:** [November 5, 2018, 1:51am UTC](https://discuss.elastic.co/t/multi-match-query-with-a-point-field-boosting/155310/2 "2018-11-05T01:51:37Z")

</div>

There are a couple of ways of doing what you are trying:

1. You can leverage combining matches from different fields through boolean like here - [https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-query-strings.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-query-strings.html)
2. While the above is a more linear variation/boost, if you want something non-linear, consider using `decay` feature as here - [https://www.elastic.co/guide/en/elasticsearch/guide/current/decay-functions.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/decay-functions.html). It is usually the goto for doing something like boosting content by recency.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 3, 2018, 1:51am UTC](https://discuss.elastic.co/t/multi-match-query-with-a-point-field-boosting/155310/3 "2018-12-03T01:51:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
