You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by GitBox <gi...@apache.org> on 2019/04/23 18:15:32 UTC

[GitHub] [lucene-solr] diegoceccarelli commented on a change in pull request #162: SOLR-8776: Support RankQuery in grouping

diegoceccarelli commented on a change in pull request #162: SOLR-8776: Support RankQuery in grouping
URL: https://github.com/apache/lucene-solr/pull/162#discussion_r277808422
 
 

 ##########
 File path: solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java
 ##########
 @@ -1270,7 +1270,7 @@ private void doProcessGroupedDistributedSearchFirstPhase(ResponseBuilder rb, Que
       final int topNGroups;
       Query query = cmd.getQuery();
       if (query instanceof AbstractReRankQuery){
-        topNGroups = cmd.getOffset() + ((AbstractReRankQuery)query).getReRankDocs();
+        topNGroups = Math.max(((AbstractReRankQuery)query).getReRankDocs(), cmd.getOffset() + cmd.getLen());
 
 Review comment:
   the non distributed case looks fine to me. 

----------------------------------------------------------------
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org