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?
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]