On Tue, May 19, 2009 at 8:28 AM, Mark Miller <markrmil...@gmail.com> wrote:

>> Thinking more on this... I'd love to have a constant-score mode, but
>> implemented as a BooleanQuery, meaning the scores would be the same
>> (constant) regardless of whether under-the-hood the query was
>> rewritten to BooleanQuery vs pre-compiled up front into a BitSet.
>
> +1. ConstantScoreQuery is only a performance win when there are lots of
> matches (it seems), but the lack of TooManyClauses exceptions is also a big
> win. I want the best of both worlds :)

OK I'll open an issue to give BooleanQuery a constant score mode, and
fix MultiTermQuery to use it so that "constant scoring" and "use
up-front filter vs BooleanQuery" are nearly orthogonal decisions.

Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org

Reply via email to