Apache Lucene open-source search software
LUCENE-2858: javadocs
Robert Muir59c8c9e67e8e
diff --git a/lucene/src/java/org/apache/lucene/index/IndexReader.java b/lucene/src/java/org/apache/lucene/index/IndexReader.javaindex d1b2cd1ddb1..40e4e6b69da 100644--- a/lucene/src/java/org/apache/lucene/index/IndexReader.java+++ b/lucene/src/java/org/apache/lucene/index/IndexReader.java@@ -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. */