Skip to content

Apache Lucene open-source search software

fix jdocs

Shai Erera7d2ef963f5ee
diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexReader.java b/lucene/core/src/java/org/apache/lucene/index/IndexReader.java
index 354a5830d23..5b5f8f691b9 100644
--- a/lucene/core/src/java/org/apache/lucene/index/IndexReader.java
+++ b/lucene/core/src/java/org/apache/lucene/index/IndexReader.java
@@ -441,12 +441,11 @@ public abstract class IndexReader implements Closeable {
*/
public abstract int docFreq(Term term) throws IOException;
- /** Returns the number of documents containing the term
- * <code>term</code>. This method returns 0 if the term or
- * field does not exists, or -1 if the Codec does not support
- * the measure. This method does not take into account deleted
- * documents that have not yet been merged away.
- * @see TermsEnum#totalTermFreq()
+ /**
+ * Returns the total number of occurrences of {@code term} across all
+ * documents (the sum of the freq() for each doc that has this term). This
+ * will be -1 if the codec doesn't support this measure. Note that, like other
+ * term measures, this measure does not take deleted documents into account.
*/
public abstract long totalTermFreq(Term term) throws IOException;