lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Elschot <>
Subject Re: UnscoredRangeQuery
Date Thu, 21 Apr 2005 18:40:49 GMT
On Thursday 21 April 2005 17:41, Yonik Seeley wrote:
> OK, so as I said, my previous version of UnscoredRangeQuery that could
> work with any number of terms in the range had a problem - it could
> return duplicates if a doc had more than one term in the range.
> Here is how I fixed it:
> I hacked together an UnscoredQuery that takes a Filter (it's like
> FilteredQuery without the Query part).  My UnscoredRangeQuery now
> rewrites to an UnscoredQuery wrapping a RangeFilter.  Since I have all
> the docids to start with, the scorer can now implement skipTo.
> Anyone have a better name than UnscoredQuery?  It currently wrapps a
> filter, but the name FilterQuery seems to close to FilteredQuery.

ConstantScoreQuery would seem better, with the addition of the constant
score value as a constructor argument.

> I'll cut-n-paste the classes below since last time at least one person
> had problems seeing attachments.

In case you want to, you can add the Apache Licene 2.0 and post them here:
Like the ones posted there, they depend on java 1.4 because
they use nextSetBit.
You could also open a new bug (for lucene search) and then post them there,
that would leave you free to choose the bug title.

Paul Elschot.

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

View raw message