ah! Thanks Yonik! -John On Sun, Oct 18, 2009 at 6:32 AM, Yonik Seeley <[email protected]>wrote:
> On Sun, Oct 18, 2009 at 1:43 AM, John Wang <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
