lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Boolean retrieval
Date Tue, 07 Jul 2009 09:46:18 GMT
On Tue, Jul 7, 2009 at 5:39 AM, mark harwood<markharw00d@yahoo.co.uk> wrote:

> Given the requirement is to ignore scoring I would recommend (as someone else suggested)
looking at the IndexSearch.search method that takes a HitCollector and simply accumulate all
results, regardless of score.

Make that "Collector" (new as of 2.9).

HitCollector is the old (deprecated as of 2.9) way, which always
pre-computed the score of each hit and passed the score to the collect
method.

Whereas Collector makes scoring optional (your collect method must
actually request the score).

EG sorting by field makes use of this (in 2.9) by making scoring optional.

Mike

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