Sorry, I sent the message before completing it. On Tuesday 19 September 2006 19:45, Paul Elschot wrote: > On Tuesday 19 September 2006 11:49, karl wettin wrote: > > On 9/19/06, Bhavin Pandya <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > > > > How to put limit in lucene that "dont return me any document which has > score less than 0.25" > > > > You implement a HitCollector and break out when you reach such low score. > > A HitCollector gets called in index order. For each matching document, that is. Hits provides the documents sorted (normally) by decreasing score value.
This means that breaking out from a HitCollector is not normally done, a doc with higher score could still follow. Regards, Paul Elschot --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]