lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: When to use addIndexes and when addIndexesNoOptimize
Date Mon, 10 May 2010 16:27:26 GMT
addIndexes accepts IndexReaders, so eg "foreign" IndexReader impls can
be passed in (eg FilterIndexReader).

While addIndexesNoOptimize accepts Directory, ie it gets a reader using


On Mon, May 10, 2010 at 5:58 AM, Shai Erera <> wrote:
> Hi
> As I was working on LUCENE-1585 and understanding more the differences
> between addIndexes and addIndexesNoOptimize, I was wondering why do we have
> those two methods? It seems like addIndexes's usage is discouraged, no? Can
> someone please explain me why it isn't deprecated, and addIndexesNoOpt
> becomes the default one? Are we losing any functionality?
> Shai

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

View raw message