# Function score and default value

**URL:** https://discuss.elastic.co/t/function-score-and-default-value/148175
**Category:** Elasticsearch
**Created:** [September 11, 2018, 4:12pm UTC](https://discuss.elastic.co/t/function-score-and-default-value/148175 "2018-09-11T16:12:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sandstrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sandstrom/32/35424_2.png) [@sandstrom](https://discuss.elastic.co/u/sandstrom)
#### Post date: [September 11, 2018, 4:12pm UTC](https://discuss.elastic.co/t/function-score-and-default-value/148175/1 "2018-09-11T16:12:11Z")

</div>

**EDIT**

This question was based on a misunderstanding on my part, and is no longer valid. Please ignore it 🙂

**QUESTION**

How can I set the origin/starting value for function scores, which is now `0.5`?

**EXAMPLE**

I've got some documents (names) returned from a query, with scores of say:

- John, 0.3
- John Doe, 0.2
- Jane, 0.1

Now I'd like to apply some function scores to them.

I've got a function score function with weight `1.1`. This will yield a 0.55 (`0.5` \* 1.1) score from this function.

With the boost\_mode of `multiply` this will then be multiplied with the values above and yield the following final scores:

- John, 0.165 (0.3 \* 0.55)
- John Doe, 0.11 (0.2 \* 0.55)
- Jane, 0.055 (0.1 \* 0.55)

My question is, how can I change the `0.5` value to be `1`?

If I could, the function would yield 1 \* 1.1 = 1.1 and the final scores would be:

- John, 0.33 (0.3 \* 1.1)
- John Doe, 0.22 (0.2 \* 1.1)
- Jane, 0.11 (0.1 \* 1.1)

_(this example isn't my real issue, it's a simplified example)_

---

<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: [October 9, 2018, 4:25pm UTC](https://discuss.elastic.co/t/function-score-and-default-value/148175/2 "2018-10-09T16:25:02Z")

</div>

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