lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From simon <mtnes...@gmail.com>
Subject Re: Rollback to old index stored with SolrDeletionPolicy
Date Tue, 06 Sep 2011 22:44:28 GMT
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 <espinaemmanuel@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message