cpoerschke commented on a change in pull request #300: SOLR-11831: Skip second grouping step if group.limit is 1 (aka Las Vegas Patch) URL: https://github.com/apache/lucene-solr/pull/300#discussion_r265736109
########## File path: solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java ########## @@ -233,6 +233,41 @@ public void prepare(ResponseBuilder rb) throws IOException } } + private boolean allowSkipSecondGroupingStep(final GroupingSpecification groupingSpec, final boolean isReranking ) { + // Only possible if we only want one doc per group + if (groupingSpec.getGroupLimit() != 1) { Review comment: minor: `getGroupLimit()` is one of the deprecated `GroupingSpecification` accessors; something like https://github.com/cpoerschke/lucene-solr/commit/5c227c41c2aa176650e19f58c351b4d538ef4fd7 could be a replacement (that commit also includes parameterised logging i.e. `{}` instead of `+`) ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org