lucene-java-user mailing list archives

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

> Given the requirement is to ignore scoring I would recommend (as someone else suggested)
looking at the 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

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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message