lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <>
Subject Re: 2.9.1
Date Sun, 18 Oct 2009 13:32:30 GMT
On Sun, Oct 18, 2009 at 1:43 AM, John Wang <> wrote:
>     Maybe it is not a big deal. But I would still like to know why in
> MultiTermDocs, if term is not null, termDocs(term) is not called, rather
> termDocs() is.

That would work, but it would sometimes be less efficient.

By calling termDocs() only, MultiTermDocs can use the more efficient
seek(termEnum) rather than seek(term) that termDocs(term) would
otherwise use.


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

View raw message