On 3/14/2021 1:27 PM, Venkateswarlu Bommineni wrote:
I know it might look like a silly question,still I wanted to shoot this
question to get more details.
What is the difference between soft commit vs hard commit ? Does soft
commit mean the index will be updated in memory and will be lost if JVM
crashes ?
In addition to what Jan pointed you to, which is a pretty good summary:
If you have the updateLog enabled, which I believe all the example
configs do, then Solr will replay all the updates in the log when the
core starts up again. This has a very good chance of making sure you
don't lose the small amount of data that the soft commit might not have
written to disk.
Here's another source of info about commits, which is quite
comprehensive. The headline says SolrCloud, but all of it also applies
to Solr when not in cloud mode.
https://lucidworks.com/post/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/
Thanks,
Shawn