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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to