# How to disable the default scoring in 0.19

**URL:** https://discuss.elastic.co/t/how-to-disable-the-default-scoring-in-0-19/7833
**Category:** Elasticsearch
**Created:** [May 24, 2012, 7:45am UTC](https://discuss.elastic.co/t/how-to-disable-the-default-scoring-in-0-19/7833 "2012-05-24T07:45:54Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)
#### Post date: [May 24, 2012, 7:45am UTC](https://discuss.elastic.co/t/how-to-disable-the-default-scoring-in-0-19/7833/1 "2012-05-24T07:45:54Z")

</div>

I was earlier using 0.18 and i queried the data using _custom\_filter\_score_,  
and it was returning me the exact score that i assigned in filters(pure  
integer values). now upgraded my system to 0.19.4, but now the same query  
is returning the different score, like if i assigned some integer, instead  
of returning that integer value as score, its score is something like  
2.0987. when i checked the query using

- explain:true\*

it was showing other calculations also, which i don't want. i just want to  
have the score that i am using in the custom\_filter\_score, can you tell me,  
what did i miss??

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [May 25, 2012, 10:31pm UTC](https://discuss.elastic.co/t/how-to-disable-the-default-scoring-in-0-19/7833/2 "2012-05-25T22:31:04Z")

</div>

The behavior changed in 0.19 of custom\_filters\_score, because we added more  
score modes, the boos/script is used to calculate a value that is then  
multiplied by the score of the query it wraps. If you don't want any  
scoring from the query wrapped, you can wrap that query with constant\_score  
query.

On Thu, May 24, 2012 at 9:45 AM, Narinder Kaur [narinder.kaur@izap.in](mailto:narinder.kaur@izap.in)wrote:

> I was earlier using 0.18 and i queried the data using \*custom\_filter\_score  
> \*, and it was returning me the exact score that i assigned in  
> filters(pure integer values). now upgraded my system to 0.19.4, but now the  
> same query is returning the different score, like if i assigned some  
> integer, instead of returning that integer value as score, its score is  
> something like 2.0987. when i checked the query using
> 
> - explain:true\*
> 
> it was showing other calculations also, which i don't want. i just want to  
> have the score that i am using in the custom\_filter\_score, can you tell me,  
> what did i miss??

---

<div class="post-metadata">

### Author: ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)
#### Post date: [May 28, 2012, 6:25am UTC](https://discuss.elastic.co/t/how-to-disable-the-default-scoring-in-0-19/7833/3 "2012-05-28T06:25:21Z")

</div>

thanks, it worked fine.

On Saturday, 26 May 2012 04:01:04 UTC+5:30, kimchy wrote:

> The behavior changed in 0.19 of custom\_filters\_score, because we added  
> more score modes, the boos/script is used to calculate a value that is then  
> multiplied by the score of the query it wraps. If you don't want any  
> scoring from the query wrapped, you can wrap that query with constant\_score  
> query.
> 
> On Thu, May 24, 2012 at 9:45 AM, Narinder Kaur [narinder.kaur@izap.in](mailto:narinder.kaur@izap.in)wrote:
> 
> > I was earlier using 0.18 and i queried the data using \*  
> > custom\_filter\_score\*, and it was returning me the exact score that i  
> > assigned in filters(pure integer values). now upgraded my system to 0.19.4,  
> > but now the same query is returning the different score, like if i assigned  
> > some integer, instead of returning that integer value as score, its score  
> > is something like 2.0987. when i checked the query using
> > 
> > - explain:true\*
> > 
> > it was showing other calculations also, which i don't want. i just want  
> > to have the score that i am using in the custom\_filter\_score, can you tell  
> > me, what did i miss??

---

<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: [July 6, 2017, 3:26am UTC](https://discuss.elastic.co/t/how-to-disable-the-default-scoring-in-0-19/7833/4 "2017-07-06T03:26:46Z")

</div>


