Apache Lucene open-source search software
fix JavaDoc: TopDocs instead of Hits (#14015)
Sascha Szottad2773b4ef9d
diff --git a/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java b/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.javaindex 46198733341..12bb1ea020a 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java@@ -94,9 +94,9 @@ import org.apache.lucene.util.PriorityQueue;* Reader target = ... // orig source of doc you want to find similarities to* Query query = mlt.like( target);*- * Hits hits = is.search(query);- * // now the usual iteration thru 'hits' - the only thing to watch for is to make sure- * //you ignore the doc if it matches your 'target' document, as it should be similar to itself+ * TopDocs topDocs = is.search(query, 10);+ * // now the usual iteration thru 'topDocs' - the only thing to watch for is to make sure+ * // you ignore the doc if it matches your 'target' document, as it should be similar to itself** </pre>*