Re: Using IndexWriterConfig repeatedly in 3.1

2011-04-01 Thread Trejkaz
On Sat, Apr 2, 2011 at 7:07 AM, Christopher Condit wrote: > I see in the JavaDoc for IndexWriterConfig that: > "Note that IndexWriter makes a private clone; if you need to > subsequently change settings use IndexWriter.getConfig()." > > However when I attempt to use the same IndexWriterConfig to c

Re: Using IndexWriterConfig repeatedly in 3.1

2011-04-01 Thread Michael McCandless
The issue is that a MergePolicy instance cannot be re-used across multiple writers. So, you could take your first IWC, change out the MergePolicy, then re-use it? Other things also cannot be reused, eg a ConcurrentMergeScheduler instance. Mike http://blog.mikemccandless.com On Fri, Apr 1, 2011

Using IndexWriterConfig repeatedly in 3.1

2011-04-01 Thread Christopher Condit
I see in the JavaDoc for IndexWriterConfig that: "Note that IndexWriter makes a private clone; if you need to subsequently change settings use IndexWriter.getConfig()." However when I attempt to use the same IndexWriterConfig to create multiple IndexWriters the following exception is thrown: org.