On Wed, Apr 17, 2013 at 7:32 AM, Ashish Sarna <ashish.sa...@thepsi.com> wrote: > Thanks for your replies. > > However, in my scenario, an external backup utility would be used to take > backup of the Lucene index. I just need to ensure that index do not get > changed when a search is performed over it or due to internal Lucene > housekeeping/optimization/merge activities.
That's fine. You use the SnapshotDeletionPolicy to get a snapshot, and then you ask that snapshot for the list of files, then tell your external utility to copy those files. Once that utility is done, you release the snapshot. If you need the snapshot to persist even when you close the IndexWriter/JVM and later open a new IndexWriter, use PersistentSnapshotDeletionPolicy. Mike McCandless http://blog.mikemccandless.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org