lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <>
Subject Re: IndexWriter#setRAMBufferSizeMB removed in trunk
Date Thu, 10 Mar 2011 20:07:57 GMT
On Thu, Mar 10, 2011 at 7:28 AM, Robert Muir <> wrote:

> This should block the release: if IndexWriterConfig is a broken design
> then we need to revert this now before its released, not make users
> switch over and then undeprecate/revert in a future release.


I think we have to sort this out, one way or another, before releasing 3.1.

I really don't like splitting setters across IWC vs IW.  That'll just
cause confusion, and noise over time as we change our minds about
where things belong.

Looking through IWC, it seems that most setters can be done "live".
In fact, setRAMBufferSizeMB is *almost* live: all places in IW that
use this pull it from the config, except for DocumentsWriter.  We
could just push the config down to DW and have it pull live too...

Other settings are not pulled live but for no good reason, eg
termsIndexInterval is copied to a private field in IW but could just
as easily be pulled when it's time to write a new segment...

Maybe we should simply document which settings are live vs only take
effect at init time?



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

View raw message