title: Understanding the different type of SOLR commits
body: <p>I want to clarify my understanding about different type of Solr commits. Please correct me if I am wrong.</p>
  
  <ul>
  <li><p><code>commits</code>: all type of commits including <strong>SOFT</strong> and <strong>HARD</strong> commits.</p></li>
  <li><p><code>autoCommit</code>: does a <strong>HARD</strong> commit to the disk and make sure all the autoSoftCommit commits are written to disk and commits any other pending documents.</p></li>
  <li><code>autoSoftCommit</code> - does a <strong>SOFT</strong> commit . After a autoSoftCommit, if the the SOLR server goes down, the autoSoftCommit documents will be lost.</li>
  <li><code>autocommit maxTime</code>: Maximum time between two autocommits execution (in my case it is set as <strong>15000s</strong>)</li>
  <li><code>soft autocommit maxTime</code>:Maximum documents ‘adds’ between two <strong>SOFT</strong> auto-commits. (in my case it is set as <strong>180000s</strong>)</li>
  </ul>
  
  <blockquote>
    <p>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)</p>
    
    <p>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)</p>
  </blockquote>
  
  <p>Solr Stats url : <a href="https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference" rel="nofollow noreferrer">https://cwiki.apache.org/confluence/display/solr/Performance+Statistics+Reference</a></p>
  
  <p><a href="https://i.stack.imgur.com/TG7Cy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TG7Cy.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>Is it possible to give an example for commit, autoCommit and
    softCommit</p>
  </blockquote>