Understanding the different type of SOLR commits

2019-04-10 18:01发布

I want to clarify my understanding about different type of Solr commits. Please correct me if I am wrong.

  • commits: all type of commits including SOFT and HARD commits.

  • autoCommit: does a HARD commit to the disk and make sure all the autoSoftCommit commits are written to disk and commits any other pending documents.

  • autoSoftCommit - does a SOFT commit . After a autoSoftCommit, if the the SOLR server goes down, the autoSoftCommit documents will be lost.
  • autocommit maxTime: Maximum time between two autocommits execution (in my case it is set as 15000s)
  • soft autocommit maxTime:Maximum documents ‘adds’ between two SOFT auto-commits. (in my case it is set as 180000s)

So, if we set commit=true parameter to any solr api call with some document data, then it does HARD commit to current document also to the pending documents. doc will updated on the disk within (15000ms=15secs)

So, if we set commit=false parameter to any solr api call with some document data, then it does SOFT commit to current document also to the pending documents. doc will updated on the disk within (180000ms=3mins)

Solr Stats url : https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference

enter image description here

Is it possible to give an example for commit, autoCommit and softCommit

1条回答
登录 后发表回答