lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: Searching with a score cutoff
Date Mon, 04 Jun 2007 22:12:47 GMT
On 6/4/07, Andy Goodell <agoodell@discoverymining.com> wrote:
> Currently our application implements a score cutoff by iterating through the
> hits and then stopping once it reaches a hit whose score is below our
> threshold.  We'd like to optimize this (and avoid looking at the entire hits
> when we don't need to) by having the score cutoff applied when the hits are
> gathered.  The only way I can see of doing this is by over-riding
> Similarity, which seems like an incredibly complex procedure.  What am I
> missing?

Look at the search methods that accept a HitCollector.

-Yonik

---------------------------------------------------------------------
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