# Using boost in a match query

**URL:** <https://discuss.elastic.co/t/using-boost-in-a-match-query/109539>\
**Category:** Elasticsearch\
**Created:** [November 29, 2017, 9:00am UTC](https://discuss.elastic.co/t/using-boost-in-a-match-query/109539 "2017-11-29T09:00:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jettro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jettro/32/3418_2.png) [@jettro](https://discuss.elastic.co/u/jettro)\
**Post date:** [November 29, 2017, 9:00am UTC](https://discuss.elastic.co/t/using-boost-in-a-match-query/109539/1 "2017-11-29T09:00:07Z")

</div>

Hi,  
I am trying to find documentation about the boost feature of a match query like in the following sample:

```
{
  "match": {
    "name": {
      "query": "sony",
      "boost": 10,
      "_name": "match sony"
    }
  }
}

```

Is the boost still meant to be used like this or should we boost in another way? Is it documentated somewhere in the reference manual?

thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 29, 2017, 9:18am UTC](https://discuss.elastic.co/t/using-boost-in-a-match-query/109539/2 "2017-11-29T09:18:51Z")

</div>

Yes but with a single query it does not really make sense IMO as the scoring order will be the same in that case.

It's more something you want to apply on different fields or different queries.

For example:

> <https://gist.github.com/dadoonet/5179ee72ecbf08f12f53d4bda1b76bab>

---

<div class="post-metadata">

**Author:** ![jettro](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jettro/32/3418_2.png) [@jettro](https://discuss.elastic.co/u/jettro)\
**Post date:** [November 29, 2017, 11:07am UTC](https://discuss.elastic.co/t/using-boost-in-a-match-query/109539/3 "2017-11-29T11:07:19Z")

</div>

I agree, I have multiple match queries in this case that I did not add to the source code. I am curious why the boost option is not in de reference manual. Thanks for the gist by the way, nice to have around for samples 🙂

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 29, 2017, 11:57am UTC](https://discuss.elastic.co/t/using-boost-in-a-match-query/109539/4 "2017-11-29T11:57:46Z")

</div>

It’s an option available for all (most?) text queries.

[https://www.elastic.co/guide/en/elasticsearch/reference/6.0/query-dsl-query-string-query.html#\_boosting](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/query-dsl-query-string-query.html#_boosting)

I agree it should be documented in the reference guide like in the match query.

---

<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 27, 2017, 11:57am UTC](https://discuss.elastic.co/t/using-boost-in-a-match-query/109539/5 "2017-12-27T11:57:47Z")

</div>

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