Example #1
0
  protected final void doClose() throws IOException {
    fieldsReader.close();
    tis.close();

    if (freqStream != null) freqStream.close();
    if (proxStream != null) proxStream.close();

    closeNorms();
    if (termVectorsReader != null) termVectorsReader.close();

    if (cfsReader != null) cfsReader.close();
  }
Example #2
0
 public final int docFreq(Term t) throws IOException {
   TermInfo ti = tis.get(t);
   if (ti != null) return ti.docFreq;
   else return 0;
 }
Example #3
0
 public final TermEnum terms(Term t) throws IOException {
   return tis.terms(t);
 }