# Multiple boost queries

**URL:** <https://discuss.elastic.co/t/multiple-boost-queries/142917>\
**Category:** Elasticsearch\
**Created:** [August 3, 2018, 1:46pm UTC](https://discuss.elastic.co/t/multiple-boost-queries/142917 "2018-08-03T13:46:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewScientists](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/newscientists/32/31316_2.png) [@NewScientists](https://discuss.elastic.co/u/NewScientists)\
**Post date:** [August 3, 2018, 1:46pm UTC](https://discuss.elastic.co/t/multiple-boost-queries/142917/1 "2018-08-03T13:46:08Z")

</div>

Hello, i've been trying to find the right format for a mutliple boost query for the last hour, could someone assist me in writing this correctly? essentially it is a single query that can do the below many times.

This Works

```
{
    "query": {
        "match" : {
            "title": {
                "query": "brain",
                "boost": 2
            }
        }
    }
}

```

This is what i am trying to achieve but does not work. One normal term to search in title and two other boosted terms to also prioritise in title.

```
{
    "query": {
        "match" : {
           "title": {
                "query": "neuron",
            },
            "title": {
                "query": "brain",
                "boost": 2
            },
                "query": "birdsong",
                "boost": 3
            }
        }
    }
}

```

Another thing i'd like to clarify is that in order for ElasticSearch to understand queries like the above from a web application they must be submitted as a Post HTTP request?

---

<div class="post-metadata">

**Author:** ![NewScientists](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/newscientists/32/31316_2.png) [@NewScientists](https://discuss.elastic.co/u/NewScientists)\
**Post date:** [August 3, 2018, 2:03pm UTC](https://discuss.elastic.co/t/multiple-boost-queries/142917/2 "2018-08-03T14:03:42Z")

</div>

I needed to issue a bool/should query like this:

```
POST index/_search
{
  "query": {
    "bool": {
      "should": [
        {
          "match": {
            "title": {
              "query": "neuron"
            }
          }
        },
        {
          "match": {
            "title": {
              "query": "brain",
              "boost": 2
            }
          }
        },
        {
          "match": {
            "title": {
              "query": "birdsong",
              "boost": 3
            }
          }
        }
      ]
    }
  }
}

```

And both GET and POST are accepted when sending a query.

Answer received on stackoverflow.

---

<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:** [August 31, 2018, 2:03pm UTC](https://discuss.elastic.co/t/multiple-boost-queries/142917/3 "2018-08-31T14:03:43Z")

</div>

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