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... :) )

Paul

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



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to