lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: how to forcemerge a index library with many segmens to another dir?
Date Thu, 20 Dec 2012 09:39:44 GMT
So you want a copy of the merged index on another disk?  You could
just copy it, before or after the merge, your choice. Or create the
new index with an IndexWriter and call one of the addIndexes()
methods.  From the javadocs they sound to have different merge
effects.  Try it out and see what happens.


On Thu, Dec 20, 2012 at 1:24 AM, Hu Jing <> wrote:
> Now, i have a index library with 100 segments.
> Using forcemerge function can merge all segments into a segment.
> But I also want the newly generated index library which is written in
> another disk.
> Doing this just for Reading and writing disk separately.
> How to implement this?
> Thanks very much.

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

View raw message