Hi, You cannot use the same IndexWriterConfig for two different IndexWriters. Clone it before, if you want to use it multiple times.
Uwe ----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: [email protected] > -----Original Message----- > From: Clemens Wyss [mailto:[email protected]] > Sent: Monday, October 24, 2011 4:47 PM > To: [email protected] > Subject: AlreadySetException ? > > I am seeing this stack trace in my logs: > org.apache.lucene.util.SetOnce$AlreadySetException: The object cannot be set > twice! > at org.apache.lucene.util.SetOnce.set(SetOnce.java:69) > at > org.apache.lucene.index.MergePolicy.setIndexWriter(MergePolicy.java:271) > at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1104) > ... > What can possibly cause this exception? I can't be calling the constructor of > IndexWriter twice, can I ;) > > Any help appreciated > - Clemens > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
