Cause the RAMDirectory is not serializable, it's hard to send a index
to a remote computer. I think it's kind of tricky, but it would work.
1. Create a fresh new IndexWriter(let's name it toTransfer) with
temporary FSDirectory, /usr/tmp/some/directory for example.
2. Invoke the toTransfer.addIndex
Hello Otis,
Thanks alot !.
I will try.
Thanks again,
Youngho
- Original Message -
From: "Otis Gospodnetic" <[EMAIL PROTECTED]>
To: ; "Youngho Cho" <[EMAIL PROTECTED]>
Sent: Saturday, September 10, 2005 10:59 AM
Subject: Re: RAMDirectory add inde
Save it to disk using FSDirectory, zip the index directory, and copy it
to the remote host over the socket. There is no built-in Lucene-way of
doing this. You can also simply scp the index directory or use
whatever other file transfer protocol suits you.
Otis
--- Youngho Cho <[EMAIL PROTECTED]>