Apache Lucene open-source search software
LUCENE-6271: fix javadocs, don't @see yourself, and make it clear you don't get positions unless you ask
Robert Muir78c1239c985c
diff --git a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.javaindex a822da69479..7844bd38ff6 100644--- a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java+++ b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java@@ -141,10 +141,17 @@ public abstract class TermsEnum implements BytesRefIterator {/** Get {@link PostingsEnum} for the current term. Do not* call this when the enum is unpositioned. This method* will not return null.+ * <p>+ * Use this method if you only require documents and frequencies,+ * and do not need any proximity data.+ * This method is equivalent to+ * {@link #postings(Bits, PostingsEnum, int) postings(liveDocs, reuse, PostingsEnum.FREQS)}** @param liveDocs unset bits are documents that should not* be returned- * @param reuse pass a prior PostingsEnum for possible reuse */+ * @param reuse pass a prior PostingsEnum for possible reuse+ * @see #postings(Bits, PostingsEnum, int)+ */public final PostingsEnum postings(Bits liveDocs, PostingsEnum reuse) throws IOException {return postings(liveDocs, reuse, PostingsEnum.FREQS);}@@ -160,7 +167,7 @@ public abstract class TermsEnum implements BytesRefIterator {* @param reuse pass a prior PostingsEnum for possible reuse* @param flags specifies which optional per-document values* you require; see {@link PostingsEnum#FREQS}- * @see #postings(Bits, PostingsEnum, int) */+ */public abstract PostingsEnum postings(Bits liveDocs, PostingsEnum reuse, int flags) throws IOException;/**