cpoerschke commented on code in PR #2524:
URL: https://github.com/apache/solr/pull/2524#discussion_r1644852623


##########
solr/core/src/java/org/apache/solr/handler/MoreLikeThisHandler.java:
##########
@@ -165,8 +166,12 @@ public void handleRequestBody(SolrQueryRequest req, 
SolrQueryResponse rsp) throw
           int matchOffset = params.getInt(MoreLikeThisParams.MATCH_OFFSET, 0);
           // Find the base match
           DocList match =
-              searcher.getDocList(
-                  query, null, null, matchOffset, 1, flags); // only get the 
first one...
+              new QueryCommand()
+                  .setQuery(query)
+                  .setOffset(matchOffset)
+                  .setLen(1) // only get the first one...
+                  .setFlags(flags)
+                  .search(searcher).getDocList();

Review Comment:
   precommit
   ```suggestion
                     .search(searcher)
                     .getDocList();
   ```



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to