# Static Quality Scores and Boost Functions

**URL:** <https://discuss.elastic.co/t/static-quality-scores-and-boost-functions/2858>\
**Category:** Elasticsearch\
**Created:** [March 22, 2010, 1:50am UTC](https://discuss.elastic.co/t/static-quality-scores-and-boost-functions/2858 "2010-03-22T01:50:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Day\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephen_day_2/32/3323_2.png) [@Stephen\_Day\_2](https://discuss.elastic.co/u/Stephen_Day_2)\
**Post date:** [March 22, 2010, 1:50am UTC](https://discuss.elastic.co/t/static-quality-scores-and-boost-functions/2858/1 "2010-03-22T01:50:44Z")

</div>

An integral part of quality search results comes from ranking through  
static quality scores, described here in Manning's IR book:

[http://nlp.stanford.edu/IR-book/html/htmledition/static-quality-scores-and-ordering-1.html](http://nlp.stanford.edu/IR-book/html/htmledition/static-quality-scores-and-ordering-1.html)

In SOLR, one is able to affect ranking through boost functions,  
applied to the final query scoring, which can work to be a kind of  
"online" quality score. I have scoured the elasticsearch  
documentation, but have not been able to find similar functionality.  
Does elasticsearch not have this capability? Is this a planned  
addition?

Thank you,

steve

---

<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:** [March 22, 2010, 9:22am UTC](https://discuss.elastic.co/t/static-quality-scores-and-boost-functions/2858/2 "2010-03-22T09:22:21Z")

</div>

Boost functions are certainly on the roadmap. You can also plug in your own  
Similarity (Lucene) implementation to further control the scoring. Its not  
documented (yet), but its there. So if you want that, I can point you on how  
to do it.

-shay.baon

On Mon, Mar 22, 2010 at 3:50 AM, Stephen J Day [stevvooe@gmail.com](mailto:stevvooe@gmail.com) wrote:

> An integral part of quality search results comes from ranking through  
> static quality scores, described here in Manning's IR book:
> 
> [Static quality scores and ordering](http://nlp.stanford.edu/IR-book/html/htmledition/static-quality-scores-and-ordering-1.html)
> 
> In SOLR, one is able to affect ranking through boost functions,  
> applied to the final query scoring, which can work to be a kind of  
> "online" quality score. I have scoured the elasticsearch  
> documentation, but have not been able to find similar functionality.  
> Does elasticsearch not have this capability? Is this a planned  
> addition?
> 
> Thank you,
> 
> steve

---

<div class="post-metadata">

**Author:** ![Stephen\_Day\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephen_day_2/32/3323_2.png) [@Stephen\_Day\_2](https://discuss.elastic.co/u/Stephen_Day_2)\
**Post date:** [March 23, 2010, 10:16pm UTC](https://discuss.elastic.co/t/static-quality-scores-and-boost-functions/2858/3 "2010-03-23T22:16:01Z")

</div>

Thanks for the response on this, Shay.

Glad to hear that Boost Functions are on the road map and am quite  
interested to see what you come up with. Do you plan on following suite with  
SOLR, or integrating some into the Query DSL? Do you have a grammar for the  
query DSL? It might be interesting to define the scoring in the Query DSL,  
especially if you formalize the grammar.

I have worked a little bit with Lucene Similarity classes, but if you have  
the time, documenting the process would be appreciated.

steve

On Mon, Mar 22, 2010 at 2:22 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> Boost functions are certainly on the roadmap. You can also plug in your own  
> Similarity (Lucene) implementation to further control the scoring. Its not  
> documented (yet), but its there. So if you want that, I can point you on how  
> to do it.
> 
> -shay.baon
> 
> On Mon, Mar 22, 2010 at 3:50 AM, Stephen J Day [stevvooe@gmail.com](mailto:stevvooe@gmail.com) wrote:
> 
> > An integral part of quality search results comes from ranking through  
> > static quality scores, described here in Manning's IR book:
> > 
> > [Static quality scores and ordering](http://nlp.stanford.edu/IR-book/html/htmledition/static-quality-scores-and-ordering-1.html)
> > 
> > In SOLR, one is able to affect ranking through boost functions,  
> > applied to the final query scoring, which can work to be a kind of  
> > "online" quality score. I have scoured the elasticsearch  
> > documentation, but have not been able to find similar functionality.  
> > Does elasticsearch not have this capability? Is this a planned  
> > addition?
> > 
> > Thank you,
> > 
> > steve

---

<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:** [March 23, 2010, 11:01pm UTC](https://discuss.elastic.co/t/static-quality-scores-and-boost-functions/2858/4 "2010-03-23T23:01:53Z")

</div>

Hi,

I am actually not familiar with Solr boost functions, I wrote my own  
version of the current function query in Lucene about 5 years ago :). I  
actually have some really nice ideas about how to implement it properly. It  
will probably include a DSL, but I want to make it even simpler. Still  
thinking about it thought as I need to create some support for it in  
elasticsearch code...

-shay.banon

On Wed, Mar 24, 2010 at 12:16 AM, Stephen Day [stevvooe@gmail.com](mailto:stevvooe@gmail.com) wrote:

> Thanks for the response on this, Shay.
> 
> Glad to hear that Boost Functions are on the road map and am quite  
> interested to see what you come up with. Do you plan on following suite with  
> SOLR, or integrating some into the Query DSL? Do you have a grammar for the  
> query DSL? It might be interesting to define the scoring in the Query DSL,  
> especially if you formalize the grammar.
> 
> I have worked a little bit with Lucene Similarity classes, but if you have  
> the time, documenting the process would be appreciated.
> 
> steve
> 
> On Mon, Mar 22, 2010 at 2:22 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:
> 
> > Boost functions are certainly on the roadmap. You can also plug in your  
> > own Similarity (Lucene) implementation to further control the scoring. Its  
> > not documented (yet), but its there. So if you want that, I can point you on  
> > how to do it.
> > 
> > -shay.baon
> > 
> > On Mon, Mar 22, 2010 at 3:50 AM, Stephen J Day [stevvooe@gmail.com](mailto:stevvooe@gmail.com)wrote:
> > 
> > > An integral part of quality search results comes from ranking through  
> > > static quality scores, described here in Manning's IR book:
> > > 
> > > [Static quality scores and ordering](http://nlp.stanford.edu/IR-book/html/htmledition/static-quality-scores-and-ordering-1.html)
> > > 
> > > In SOLR, one is able to affect ranking through boost functions,  
> > > applied to the final query scoring, which can work to be a kind of  
> > > "online" quality score. I have scoured the elasticsearch  
> > > documentation, but have not been able to find similar functionality.  
> > > Does elasticsearch not have this capability? Is this a planned  
> > > addition?
> > > 
> > > Thank you,
> > > 
> > > steve

---

<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:25am UTC](https://discuss.elastic.co/t/static-quality-scores-and-boost-functions/2858/5 "2017-07-06T04:25:10Z")

</div>


