On Fri, Apr 10, 2009 at 2:32 PM, Mark Miller <markrmil...@gmail.com> wrote:

> I had thought we would also see the advantage with multi-term queries - you
> rewrite against each segment and avoid extra seeks (though not nearly as
> many as when enumerating every term). As Mike pointed out to me back when
> though : we still rewrite against the multi-reader and so see no real
> savings here. Unfortunately.

But, RangeQuery.rewrite is simply enumerating terms, which I think is
working "OK".

It's enumerting terms, then seeking a sister TermDocs to each term,
that tickles the over-seeking problem.  FieldCache does that, and
RangeFilter on 2.4 does that, but RangeFilter (or RangeQuery with
constant score mode) on 2.9 should not (they should do it per
segment), which is why I'm baffled that Raf didn't see a speedup on
upgrading.

Mike

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

Reply via email to