Skip to content

Apache Lucene open-source search software

remove crazy javadoc, there is no default since this method takes explicit booleans for doDocScores/doMaxScore

Robert Muir477360d04798
diff --git a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java
index 4a2fa0a39e6..90310e8910f 100644
--- a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java
+++ b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java
@@ -506,12 +506,6 @@ public class IndexSearcher {
* Just like {@link #search(Weight, int, Sort, boolean, boolean)}, but you choose
* whether or not the fields in the returned {@link FieldDoc} instances should
* be set by specifying fillFields.
- *
- * <p>NOTE: this does not compute scores by default. If you
- * need scores, create a {@link TopFieldCollector}
- * instance by calling {@link TopFieldCollector#create} and
- * then pass that to {@link #search(List, Weight,
- * Collector)}.</p>
*/
protected TopFieldDocs search(Weight weight, FieldDoc after, int nDocs,
Sort sort, boolean fillFields,