lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
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 <john.wang@gmail.com> 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.

-Yonik
http://www.lucidimagination.com

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


Mime
View raw message