Re: Copy index while updating the index

2007-05-04 Thread larry hughes
Is there an example on how to do this (or can someone provide a sample code)? I've been looking at the Lucene API, particularly at IndexCommitPoint and IndexDeletionPolicy interfaces, but have no idea what I need to do in order to implement a live backup. Any help would be appreciated. LH M

RE: Copy index while updating the index

2007-04-24 Thread Rajendranath, Divya
To: java-user@lucene.apache.org Subject: Re: Copy index while updating the index Here is one way to do it: You can read/open an index at any point, even when it's being modified. You can then open a new FSDirectory pointing to a new directory and add your original FSDirectory to tha

Re: Copy index while updating the index

2007-04-10 Thread Michael McCandless
You do need to be careful with this because if a writer commits while you are copying you can easily get a copy that's unusable (is missing files). When you instantiate an IndexReader, it actually holds open most files that it uses which protects them from being deleted. So in theory if you coul

Re: Copy index while updating the index

2007-04-10 Thread Otis Gospodnetic
Here is one way to do it: You can read/open an index at any point, even when it's being modified. You can then open a new FSDirectory pointing to a new directory and add your original FSDirectory to that new FSDirectory. That will copy the index. Of course, any new documents you add to the or