lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: RangeQuery - rewrite to a RangeFilter in a ConstantScoreQuery?
Date Tue, 26 Sep 2006 02:15:45 GMT

: Given the trouble people routinely get themselves into using RangeQuery
: would it make sense to change the "rewrite" method to generate a
: ConstantScoreQuery wrapping a RangeFilter?

As much as i hate RangeQuery, i can imagine situations where people wnat
the scoring subtleties that it currently provides -- but i don't think
they are the common case.

It we want to reduce the number of "accidental" uses of RangeQuery, it
probably makes more senese to just replace it's usage in QueryParser, but
leave the rewrite method alone -- the class javadocs should also indicate
that you most likely do *not* want to use it, and should instead
probably use ConstantScoringRangeQuery -- i would go so far as to mark
RangeQuery an "Expert" class.


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

View raw message