lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <>
Subject Re: Date Boosting
Date Thu, 30 Mar 2006 14:50:33 GMT

On Mar 30, 2006, at 8:50 AM, Schwenker, Stephen wrote:
> I'm new to Lucene and I want to make a query to dynamically boost a  
> document slightly based on a date field.  I'm not sure which  
> classes are used to calculate the boost, so I wanted to ask which  
> classes I should extend to accomplish this?  I'm just asking so I  
> can get to the job faster.  I don't want to waste my time looking  
> in places I don't need to.

Extending classes is not necessary.  To boost a date field you can  
simply call Field.setBoost().   Use IndexSearcher.explain() to see  
how your boosts affect scoring.

Since you might need dynamic data boosting, perhaps the new  
FunctionQuery would be more what you're after though?


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

View raw message