lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <>
Subject Re: index conversion
Date Mon, 24 Sep 2007 11:53:43 GMT
For an already optimized index calling optimize() is a no-op.

You may try this: after opening the writer and setting compound=false, add
a dummy (even empty) document to the index, then optimize(), and finally
optionally remove the dummy document.

Note that calling optimize() might be lengthy as well for a large index. In
any case, try this first on a trial index, and also make a backup of the
existing index, just in case.

Why do you want to transform the index from compound to non compound form?


"Bogdan Ghidireac" <> wrote on 24/09/2007 15:38:51:

> Hi,
> I have an optimized compound index and I want to transform it to standard
> format. I tried to optimize using the standard format but I had
> no luck.. Is
> there another way ? I don't want to re-index because it will take several
> days.
> IndexWriter writer = new IndexWriter(args[0], new StandardAnalyzer(),
> false);
> writer.setUseCompoundFile(false);
> writer.setMaxBufferedDocs(10000);
> writer.optimize();
> writer.close();
> Regards,
> Bogdan

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

View raw message