Re: Does solr support rollback or any method to do the same job？
Surprisingly, you can delete recently added doc not yet committed doc,
Lucene tracks the sequence and after following commit there will be no that
"To rollback" delete/update one need to send original doc. But literally
there'is no fine grained rollback operation.
On 9/18/2018 4:03 AM, zhenyuan wei wrote:
> Does solr support rollback or any method to do the same job？
> Like update/add/delete a document, can I rollback them？
With SolrCloud, rollback is not supported. This is because a typical
SolrCloud install spreads the index across multiple servers. Each
server has no idea what the other servers are doing as far as indexing.
So rollback is disabled in cloud mode.
In standalone mode where each index core is a separate entity with no
connection to any others, you can do a rollback ... but it will NOT be
the document you just added/deleted/changed, it will be *EVERY* change
since the last searcher was opened. Solr does not support transactions
like a database does.