lucene-dev mailing list archives

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

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

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.

Paul Elschot.

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

View raw message