title: Term Vector Frequency in Lucene 4.0
body: <p>I'm upgrading from Lucene 3.6 to Lucene 4.0-beta. In Lucene 3.x, the <code>IndexReader</code> contains a method <code>IndexReader.getTermFreqVectors()</code>, which I can use to extract the frequency of each term in a given document and field.</p>
  
  <p>This method is now replaced by <code>IndexReader.getTermVectors()</code>, which returns <code>Terms</code>. How can I make use of this (or probably other methods) to extract the term frequency in a document and a field?</p>