LUCENE-2858: javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1238100 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-01-31 00:08:09 +00:00
parent f3d7e54321
commit 59c8c9e67e
1 changed files with 7 additions and 2 deletions

View File

@ -452,12 +452,17 @@ public abstract class IndexReader implements Closeable {
return this;
}
/** Returns the number of documents containing the
* <code>term</code>. This method returns 0 if the term or
* field does not exists. This method does not take into
* account deleted documents that have not yet been merged
* away. */
public final int docFreq(Term term) throws IOException {
return docFreq(term.field(), term.bytes());
}
/** Returns the number of documents containing the term
* <code>t</code>. This method returns 0 if the term or
/** Returns the number of documents containing the
* <code>term</code>. This method returns 0 if the term or
* field does not exists. This method does not take into
* account deleted documents that have not yet been merged
* away. */