Re: Question on Lucene hot-backup functionality.

2013-07-25 Thread Michael McCandless
On Thu, Jul 25, 2013 at 3:15 PM, Marcos Juarez Lopez wrote: > Shai and Michael, > > Thanks for your help. That did the trick, getting the live > IndexDeletionPolicy from the live writer config. > > I also agree with Michael, it's not obvious at all from the docs and/or > Lucene in Action book. M

Re: Question on Lucene hot-backup functionality.

2013-07-25 Thread Shai Erera
Well, it's sort of documented on IndexWriterConfig already: * Once {@link IndexWriter} has been created with this object, changes to this * object will not affect the {@link IndexWriter} instance. For that, use * {@link LiveIndexWriterConfig} that is returned from {@link IndexWriter#getConfig()

Re: Question on Lucene hot-backup functionality.

2013-07-25 Thread Marcos Juarez Lopez
Shai and Michael, Thanks for your help. That did the trick, getting the live IndexDeletionPolicy from the live writer config. I also agree with Michael, it's not obvious at all from the docs and/or Lucene in Action book. Maybe this can be clarified on the IndexDeletionPolicy javadocs going forw

Re: Question on Lucene hot-backup functionality.

2013-07-24 Thread Michael McCandless
This is unfortunately very trappy ... this happened with LUCENE-4876, where we added cloning of IndexDeletionPolicy on IW construction. It's very confusing that the IDP you set on your IWC is not in fact the one that IW uses... Mike McCandless http://blog.mikemccandless.com On Wed, Jul 24, 2013

Re: Question on Lucene hot-backup functionality.

2013-07-23 Thread Shai Erera
Hi In Lucene 4.4 we've improved the snapshotting process so that you don't need to specify an ID. Also, there's a new Replicator module which can be used for just that purpose - take hot index backups of the index. It pretty much hides most of the snapshotting from you. You can read about it here: