RE: Index copy

2004-11-17 Thread Ravi
 
Thanks. I was looking for an o/s independent way of copying. Probably I
can use BufferedInputStream and BufferedOutputStream classes to copy the
index to a different location.
 
-Original Message-
From: Justin Swanhart [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 2:35 PM
To: Lucene Users List
Subject: Re: Index copy

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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
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]



Re: Index copy

2004-11-17 Thread Justin Swanhart
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]