fix JavaDoc: TopDocs instead of Hits (#14015)

This commit is contained in:
Sascha Szott 2024-11-23 00:56:58 +01:00 committed by Vigya Sharma
parent 7c5a9deaf9
commit cbec73e4c3
1 changed files with 3 additions and 3 deletions

View File

@ -94,8 +94,8 @@ 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
* 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>