You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2019/11/27 08:56:40 UTC

[GitHub] [lucene-solr] janhoy commented on a change in pull request #602: docu change: use class TopDocs instead of Hits

janhoy commented on a change in pull request #602: docu change: use class TopDocs instead of Hits
URL: https://github.com/apache/lucene-solr/pull/602#discussion_r351159181
 
 

 ##########
 File path: lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java
 ##########
 @@ -92,9 +92,9 @@
  * 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);
 
 Review comment:
   @saschaszott ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org