# Multiply scores between 'distance\_feature' and 'dismax'?

**URL:** <https://discuss.elastic.co/t/multiply-scores-between-distance-feature-and-dismax/244638>\
**Category:** Elasticsearch\
**Created:** [August 11, 2020, 10:03pm UTC](https://discuss.elastic.co/t/multiply-scores-between-distance-feature-and-dismax/244638 "2020-08-11T22:03:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClubberLang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/clubberlang/32/72169_2.png) [@ClubberLang](https://discuss.elastic.co/u/ClubberLang)\
**Post date:** [August 11, 2020, 10:03pm UTC](https://discuss.elastic.co/t/multiply-scores-between-distance-feature-and-dismax/244638/1 "2020-08-11T22:03:49Z")

</div>

Hi,

Imagine I have 3 queries:

```
"distance_feature": { ... time... }

"distance_feature": { ... location... }

"dis_max" : { ... }

```

Currently, to combine it I do this:

```
"query" : {
"bool" : {
   "must" : [

  "distance_feature": { ... time... },
  "distance_feature": { ... location... },
  "dis_max" : { ... },

    ]
  }
}

```

The problem is that the score of computes as a sum, and I'm looking for a way to "multiply" instead.

I have try with function score, but I can't put them there, right ?

Do you have any idea or solution ?

Thanks

---

<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:** [September 8, 2020, 10:03pm UTC](https://discuss.elastic.co/t/multiply-scores-between-distance-feature-and-dismax/244638/2 "2020-09-08T22:03:55Z")

</div>

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