mirror of https://github.com/apache/lucene.git
fix JavaDoc: TopDocs instead of Hits (#14015)
This commit is contained in:
parent
7c5a9deaf9
commit
cbec73e4c3
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue