title: Merge factor, minMergeDocs, Lucene
body: <p>I am unable to understand the difference between mergefactor and minMergeDocs.</p>
  
  <p>For e.g. I want to index 10,000 Documents and say 100 of those Documents fill up my RAM buffer, so Lucene will write out these 100 Documents as a file. Now if I set mergefactor=5, when a fifth segment is to be written to the disk, Lucene will merge all the existing segments to a single segment and so on.</p>
  
  <p><strong>1.</strong> Where does minMergeDocs fit in to this? If I have mergefactor=5 and minMergeDocs=10 -- Does mergefactor take precedence over minMergeDocs?</p>
  
  <p><strong>2.</strong>  Also, when Lucene merges segments on the disk , does it also delete the individual segments, which are now part of the new segment file?</p>
  
  <p>Thanks in advance for your response,</p>