lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: How to filter results below perticular score
Date Tue, 19 Sep 2006 17:50:54 GMT
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 <bhavinp@rediff.co.in> 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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message