lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <paul.elsc...@xs4all.nl>
Subject Re: Contribution: better multi-field searching
Date Tue, 12 Oct 2004 18:03:55 GMT
Chuck,

The scorer keeps a sorted array of subscorers and sorts it
whenever needed. It's somewhat easier to implement that
with a util.PriorityQueue, but can't say whether it would be
faster.

For a definitely faster implementation one can start from
Lucene's BooleanScorer and assume all clauses
are optional. Instead of summing just use the maximum.

BooleanScorer works ahead for each scorer to avoid
the need for keeping the scorers sorted.
But you'll probably loose skipTo() when using BooleanScorer.

Regards,
Paul Elschot.


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message