You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ravi <ra...@htinc.com> on 2004/11/17 17:25:48 UTC
Index copy
Whats the bestway to copy an index from one directory to another? I
tried opening an IndexWriter at the new location and used addIndexes to
read from the old index. But that was very slow.
Thanks in advance,
Ravi.
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org
Re: Index copy
Posted by Justin Swanhart <gr...@gmail.com>.
You could lock your index for writes, then copy the file using
operating system copy commands.
Another way would be to lock your index, make a filesystem snapshot,
then unlock your index. You can then safely copy the snapshot without
interupting further index operations.
On Wed, 17 Nov 2004 11:25:48 -0500, Ravi <ra...@htinc.com> wrote:
> Whats the bestway to copy an index from one directory to another? I
> tried opening an IndexWriter at the new location and used addIndexes to
> read from the old index. But that was very slow.
>
> Thanks in advance,
> Ravi.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org