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
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
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.