# Maximum Score

**URL:** https://discuss.elastic.co/t/maximum-score/3863
**Category:** Elasticsearch
**Created:** [February 2, 2011, 8:34am UTC](https://discuss.elastic.co/t/maximum-score/3863 "2011-02-02T08:34:32Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Arulkumar](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Arulkumar](https://discuss.elastic.co/u/Arulkumar)
#### Post date: [February 2, 2011, 8:34am UTC](https://discuss.elastic.co/t/maximum-score/3863/1 "2011-02-02T08:34:32Z")

</div>

Hi,

May i know the maximum value of \_score field...?

---

<div class="post-metadata">

### Author: ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)
#### Post date: [February 2, 2011, 10:49am UTC](https://discuss.elastic.co/t/maximum-score/3863/2 "2011-02-02T10:49:33Z")

</div>

Hi,  
It is a relative value, why do you need to know it?  
Regards,  
Lukas  
Dne 2.2.2011 9:34 "Arulkumar" [arulkumarcs@gmail.com](mailto:arulkumarcs@gmail.com) napsal(a):

> Hi,
> 
> May i know the maximum value of \_score field...?

---

<div class="post-metadata">

### Author: ![Arulkumar](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Arulkumar](https://discuss.elastic.co/u/Arulkumar)
#### Post date: [February 2, 2011, 10:59am UTC](https://discuss.elastic.co/t/maximum-score/3863/3 "2011-02-02T10:59:28Z")

</div>

I need to calculate average score based on max\_score and \_score  
value....

On Feb 2, 3:49 pm, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:

> Hi,  
> It is a relative value, why do you need to know it?  
> Regards,  
> Lukas  
> Dne 2.2.2011 9:34 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> 
> > Hi,
> 
> > May i know the maximum value of \_score field...?

---

<div class="post-metadata">

### Author: ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)
#### Post date: [February 2, 2011, 11:02am UTC](https://discuss.elastic.co/t/maximum-score/3863/4 "2011-02-02T11:02:39Z")

</div>

Sorry for my ignorance but why do you need avg value of score?  
Dne 2.2.2011 11:59 "Arulkumar" [arulkumarcs@gmail.com](mailto:arulkumarcs@gmail.com) napsal(a):

> I need to calculate average score based on max\_score and \_score  
> value....
> 
> On Feb 2, 3:49 pm, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> 
> > Hi,  
> > It is a relative value, why do you need to know it?  
> > Regards,  
> > Lukas  
> > Dne 2.2.2011 9:34 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> > 
> > > Hi,
> > 
> > > May i know the maximum value of \_score field...?

---

<div class="post-metadata">

### Author: ![Arulkumar](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Arulkumar](https://discuss.elastic.co/u/Arulkumar)
#### Post date: [February 2, 2011, 11:08am UTC](https://discuss.elastic.co/t/maximum-score/3863/5 "2011-02-02T11:08:58Z")

</div>

I need in my application to show to user some values based on this max  
score...

so only....

On Feb 2, 4:02 pm, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:

> Sorry for my ignorance but why do you need avg value of score?  
> Dne 2.2.2011 11:59 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> 
> > I need to calculate average score based on max\_score and \_score  
> > value....
> 
> > On Feb 2, 3:49 pm, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > 
> > > Hi,  
> > > It is a relative value, why do you need to know it?  
> > > Regards,  
> > > Lukas  
> > > Dne 2.2.2011 9:34 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> 
> > > > Hi,
> 
> > > > May i know the maximum value of \_score field...?

---

<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: [February 2, 2011, 11:13am UTC](https://discuss.elastic.co/t/maximum-score/3863/6 "2011-02-02T11:13:45Z")

</div>

The maximum score is returned as part of the search response, is that what you are after?  
On Wednesday, February 2, 2011 at 1:08 PM, Arulkumar wrote:

> I need in my application to show to user some values based on this max  
> score...
> 
> so only....
> 
> On Feb 2, 4:02 pm, LukÃ¡Å¡ VlÄek [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> 
> > Sorry for my ignorance but why do you need avg value of score?  
> > Dne 2.2.2011 11:59 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> > 
> > > I need to calculate average score based on max\_score and \_score  
> > > value....
> > 
> > > On Feb 2, 3:49 pm, LukÃ¡Å¡ VlÄek [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > 
> > > > Hi,  
> > > > It is a relative value, why do you need to know it?  
> > > > Regards,  
> > > > Lukas  
> > > > Dne 2.2.2011 9:34 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> > 
> > > > > Hi,
> > 
> > > > > May i know the maximum value of \_score field...?

---

<div class="post-metadata">

### Author: ![Arulkumar](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Arulkumar](https://discuss.elastic.co/u/Arulkumar)
#### Post date: [February 2, 2011, 11:22am UTC](https://discuss.elastic.co/t/maximum-score/3863/7 "2011-02-02T11:22:46Z")

</div>

ok.... am looking for the range of the \_score value (min and max  
value)....

On Feb 2, 4:13 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> The maximum score is returned as part of the search response, is that what you are after?
> 
> On Wednesday, February 2, 2011 at 1:08 PM, Arulkumar wrote:
> 
> > I need in my application to show to user some values based on this max  
> > score...
> 
> > so only....
> 
> > On Feb 2, 4:02 pm, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > 
> > > Sorry for my ignorance but why do you need avg value of score?  
> > > Dne 2.2.2011 11:59 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> 
> > > > I need to calculate average score based on max\_score and \_score  
> > > > value....
> 
> > > > On Feb 2, 3:49 pm, Lukáš Vlček [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > > 
> > > > > Hi,  
> > > > > It is a relative value, why do you need to know it?  
> > > > > Regards,  
> > > > > Lukas  
> > > > > Dne 2.2.2011 9:34 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> 
> > > > > > Hi,
> 
> > > > > > May i know the maximum value of \_score field...?

---

<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: [February 2, 2011, 12:17pm UTC](https://discuss.elastic.co/t/maximum-score/3863/8 "2011-02-02T12:17:12Z")

</div>

on thing that you can do, is use the statistical facet, and put this as the script: doc.score

The ability to get the score for a doc in a script is part of upcoming 0.15.  
On Wednesday, February 2, 2011 at 1:22 PM, Arulkumar wrote:

> ok.... am looking for the range of the \_score value (min and max  
> value)....
> 
> On Feb 2, 4:13 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > The maximum score is returned as part of the search response, is that what you are after?
> > 
> > On Wednesday, February 2, 2011 at 1:08 PM, Arulkumar wrote:
> > 
> > > I need in my application to show to user some values based on this max  
> > > score...
> > 
> > > so only....
> > 
> > > On Feb 2, 4:02 pm, LukÃ¡Å¡ VlÄek [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > 
> > > > Sorry for my ignorance but why do you need avg value of score?  
> > > > Dne 2.2.2011 11:59 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> > 
> > > > > I need to calculate average score based on max\_score and \_score  
> > > > > value....
> > 
> > > > > On Feb 2, 3:49 pm, LukÃ¡Å¡ VlÄek [lukas.vl...@gmail.com](mailto:lukas.vl...@gmail.com) wrote:
> > > > > 
> > > > > > Hi,  
> > > > > > It is a relative value, why do you need to know it?  
> > > > > > Regards,  
> > > > > > Lukas  
> > > > > > Dne 2.2.2011 9:34 "Arulkumar" [arulkuma...@gmail.com](mailto:arulkuma...@gmail.com) napsal(a):
> > 
> > > > > > > Hi,
> > 
> > > > > > > May i know the maximum value of \_score field...?

---

<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, 4:12am UTC](https://discuss.elastic.co/t/maximum-score/3863/9 "2017-07-06T04:12:54Z")

</div>


