lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jm <>
Subject Re: SnapshotDeletionPolicy usage
Date Tue, 05 Feb 2008 15:21:50 GMT
Thanks for the reply Mike.

> You can also wrap any other deletion policy (it doesn't have to be
> KeepOnlyLastCommit).
> When you want to do a backup, make sure to do try/finally, ie:
>    IndexCommitPoint cp = dp.snapshot();
>    try {
>      Collection files = cp.getFileNames();
>      <do copying here>
>    } finally {
>      dp.release();
>    }

Ohhh, I was hoping that by using that policy any _external_ process (a
commercial backup tool) would be able to backup the index files in a
consistent way...I am afraid I was asking too much.

If I manage to coordinate with the external process so it signals it
wants to do a backup, I take the snapshot in the indexing process, and
it then copies the files, and then I release the snapshot that will
work no?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message