That is true.

Good question on converting an already optimized index... I haven't tested this, and it's somewhat roundabout, but you may be able to open an IndexWriter, then call setUseCompoundFile with the opposite of what your index presently has, run optimize, set that back, and run optimize again. I think it should work.

You could also add and then delete a single doc, then call optimize.

Mike

An Hong wrote:


I've several existing indexes in 2.1 file format. If these indexes have multiple segments and have not been optimized, a call to IndexWriter.optimize() should create a newly merged segment of the latest 2.4 file format. Is this true? And, is there a way to force a file format upgrade on a 2.1 index that's already in optimized state?
Thanks,
An



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org

Reply via email to