lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: document & field boosting
Date Mon, 12 Aug 2002 16:33:42 GMT
Clemens Marschner wrote:
> Doug, do you think the ranking function as stated in the FAQ
> (
> h&toc=faq#q31 is still correct after the recent changes?

Yes, this equation is still correct, although it's now incomplete. 
There is now another factor, the boost of the field containing the term, 
specified when that field was indexed.

As I mentioned before, I would eventually like to make it possible for 
folks to easily modify the scoring function.  My idea is to generalize 
the formula to something like:

   sum_t( term_factor(df) * term_doc_factor(tf) * field_factor(length) *
          query_boost * field_boost )

where term_factor(), term_doc_factor() and doc_factor() correspond to 
methods that folks can easily override.

Currently all of the scoring functions are static methods in a single 
class,, so one can in fact currently modify scoring by 
re-defining this class, but it is not well documented and only for the 


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message