ah! Thanks Yonik!
-John

On Sun, Oct 18, 2009 at 6:32 AM, Yonik Seeley <yo...@lucidimagination.com>wrote:

> On Sun, Oct 18, 2009 at 1:43 AM, John Wang <john.w...@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-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-dev-h...@lucene.apache.org
>
>

Reply via email to