Re: rollback to other versions of index

2011-02-15 Thread Tri Nguyen
Solr.  How do I tell solr to use a particular index? Thanks, Tri From: Michael McCandless To: solr-user@lucene.apache.org Sent: Tue, February 15, 2011 5:36:49 AM Subject: Re: rollback to other versions of index Lucene is able to do this, if you mak

Re: rollback to other versions of index

2011-02-15 Thread Michael McCandless
Lucene is able to do this, if you make a custom DeletionPolicy (which controls when commit points are deleted). By default Lucene only saves the most recent commit (KeepOnlyLastCommitDeletionPolicy), but if your policy keeps more around, then you can open an IndexReader or IndexWriter on any Index

Re: rollback to other versions of index

2011-02-15 Thread Jan Høydahl
Yes and no. The index grows like an onion adding new segments for each commit. There is no API to remove the newly added segments, but I guess you could hack something. The other problem is that as soon as you trigger an optimize() all history is gone as the segments are merged into one. Optimize

rollback to other versions of index

2011-02-14 Thread Tri Nguyen
Hi, Does solr version each index build?  We'd like to be able to rollback to not just a previous version but maybe a few version before the current one. Thanks, Tri