Github user ilaygit commented on a diff in the pull request:

    https://github.com/apache/lucene-solr/pull/162#discussion_r187527922
  
    --- Diff: 
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());
    --- End diff --
    
    Should this be handled for non distributed case as well in 
doProcessGroupedSearch(..), when pageSize>reRankDocs it returns only 
"reRankDocs" groups in non distributed case.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to