lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: Scoring for all the documents in the index relative to a query
Date Tue, 20 Nov 2007 23:09:31 GMT
On Tuesday 20 November 2007 18:33:26 Chris Hostetter wrote:
> : Well, the javadocs as patched at LUCENE-584 try to change all
> : the cases of zero scoring to 'non matching'.
> I'm very out of the loop on LUCENE-584, but i think supporting scores <= 0
> is an important use case that shouldn't go away ... it makes
> CustomScoringQueries a lot morepowerful, and easier to understand.
> if nothing else, we want to ensure that
> if...
>   search("+foo^0 bar baz yak") => returns X results
> then...
>   search("foo^0") => returns the same X results even if all scores are 0

In the patch, Matcher is a superclass of Scorer and it does not have the 
score() method, so 'matching' is independent of the any score value.
The matching docs are determined by the next(), skipTo() and doc() methods 

Paul Elschot

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

View raw message