title: How to get all terms in index directory created by lucene 4.4.0
body: <p>I's using lucene 4.4 for index my docs, and now I want to get all terms by IndexReader. In older version I used:</p>
  
  <pre><code>IndexReader reader = new IndexReader.open(pathIndexDirectory);
  TermEnum listTerm = reader.terms();
  </code></pre>
  
  <p>But in version 4.4 I can't do it.
  What can I do now ?</p>