Greets,
I've been looking over the Hit class, and I notice that there's a
getBoost() method.
/**
* Returns the boost factor for this hit on any field of the
underlying document.
*
* @see Document#getBoost()
*/
public float getBoost() throws IOException {
return getDocument().getBoost();
}
Maybe I'm missing something, but unless the user directly manipulates
the underlying Document object I think this will always return 1.
The boosts assigned at index-time don't make it through the indexing
process intact, as they get factored into the "norms". AFAIK, there
isn't an opportunity to setBoost on a hit's document at any time
during searching.
The only way this might return something other than 1 is if the doc
is fetched via hit.getDocument(), doc.setBoost(float boost) is called
against it, and hit.getBoost() is called after that.
Should this method be deprecated?
Marvin Humphrey
Rectangular Research
http://www.rectangular.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]