You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Emmanuel Espina <es...@gmail.com> on 2011/09/06 23:16:35 UTC

Rollback to old index stored with SolrDeletionPolicy

With SolrDeletionPolicy you can chose the number of "versions" of the index
to store ( maxCommitsToKeep, it defaults to 1). Well, how can you revert to
an arbitrary version that you have stored? Is there anything in Solr or in
Lucene to pick the version of the index to load?

Thank you
Emmanuel

Re: Rollback to old index stored with SolrDeletionPolicy

Posted by simon <mt...@gmail.com>.
I don't know of any way in Solr land. (One of the reasons for being able to
keep > 1 commit was to be able to deal with NFS semantics whereby files are
immediately deleted in contrast to the normal *x behavior of not deleting
until the last file handl is closed; that way you avoid 'stale file handle'
nastiness).

That said, an API which allows you to open an IndexSearcher to a previous
commit, or indeed to a snapshot saved in another subdirectory would be a
really useful improvement. Maybe an extension to the CoreAdmin API ?

-Simon

On Tue, Sep 6, 2011 at 5:16 PM, Emmanuel Espina <es...@gmail.com>wrote:

> With SolrDeletionPolicy you can chose the number of "versions" of the index
> to store ( maxCommitsToKeep, it defaults to 1). Well, how can you revert to
> an arbitrary version that you have stored? Is there anything in Solr or in
> Lucene to pick the version of the index to load?
>
> Thank you
> Emmanuel
>