# Multiply dis\_max query score

**URL:** <https://discuss.elastic.co/t/multiply-dis-max-query-score/118607>\
**Category:** Elasticsearch\
**Created:** [February 6, 2018, 10:12am UTC](https://discuss.elastic.co/t/multiply-dis-max-query-score/118607 "2018-02-06T10:12:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_P](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@Amir\_P](https://discuss.elastic.co/u/Amir_P)\
**Post date:** [February 6, 2018, 10:12am UTC](https://discuss.elastic.co/t/multiply-dis-max-query-score/118607/1 "2018-02-06T10:12:21Z")

</div>

Hello,  
Until now I used multi\_match query and multiply the regular score (not the ngram) by 3:

```
GET index/type
{
   "query": {
      "bool": {
         "must": [
            {
              "multi_match": {
                 "query": "amir",
                 "fields": ["sometext.value^3","sometext.value.ngram"]
              }
           }
        ]
     }
  }
}

```

As you can see I multiply the regular value score (not the ngram) by 3.  
Now I am trying to do the same thing with the dismax query but it is not working:

```
GET index/type
{
   "query": {
      "dis_max": {
         "queries": [
            {
              "match": {
                 "sometext.value^3": "amir"
              }
           },
           {
             "match": {
                "sometext.value.ngram": "amir"
             }
          }
        ]
     }
  }
}

```

What is the solution?  
Thanks ahead.

---

<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:** [March 6, 2018, 10:12am UTC](https://discuss.elastic.co/t/multiply-dis-max-query-score/118607/2 "2018-03-06T10:12:45Z")

</div>

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