lucene-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [lucene-solr] saschaszott commented on a change in pull request #602: docu change: use class TopDocs instead of Hits
Date Mon, 02 Dec 2019 22:12:12 GMT
saschaszott 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_r352886476
 
 

 ##########
 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:
   added comment

----------------------------------------------------------------
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


Mime
View raw message