title: searching lucene index file
body: <p>trying to understand better way of using </p>
  
  <blockquote>
    <p>writer.forceMerge(int)</p>
  </blockquote>
  
  <p>and when to use it. I am working on Lucene (5.4.1 version) in order to generate an index file am using writer.forceMerge(1) to merge segments, which I guess creates segments_2 file in index. On the other hand, while i am trying to read it which throwing <code>indexRepositoryException: cannot instantiate the reader: java.io.FileNotFoundException: /.../segments (No such file or directory)</code>. I am trying to figure out the issue whether this is related to forceMerge(1) or not ? I've gone through few documents which are available online, but unable to get the expected solution. </p>