lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Smith <>
Subject Re: Field Boosting
Date Thu, 17 Nov 2005 21:05:02 GMT
This would be a good candidate for an IllegalStateException to be  
thrown if the user calls this method when it's not valid.  Save the  
user some hassles? (one can JavaDoc to one is blue in the face, but  
throwing a good RuntimeException with a message trains the users much  
quicker... :) )


On 18/11/2005, at 7:56 AM, Yonik Seeley wrote:

> Right.  getBoost() is meaningless on retrieved documents (it isn't set
> when a doc is read from the index).
> There really should have been a separate class for documents retrieved
> from an index vs documents added... but that's water way under the
> bridge.
> -Yonik
> On 11/17/05, Erik Hatcher <> wrote:
>> I don't believe, though haven't checked, that doc.getBoost() is a
>> valid thing to call on documents retrieved from an index.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message