Apache Lucene open-source search software
SOLR-6203: in QueryComponent rename groupSortStr to sortWithinGroupStr (so that name and meaning match)
Christine Poerschkea4a314d16024
diff --git a/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java b/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.javaindex ba6a68d28fc..8e0f0eed26e 100644--- a/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/QueryComponent.java@@ -257,9 +257,9 @@ public class QueryComponent extends SearchComponent}// groupSort defaults to sort- String groupSortStr = params.get(GroupParams.GROUP_SORT);+ String sortWithinGroupStr = params.get(GroupParams.GROUP_SORT);//TODO: move weighting of sort- Sort sortWithinGroup = groupSortStr == null ? groupSort : searcher.weightSort(SortSpecParsing.parseSortSpec(groupSortStr, req).getSort());+ Sort sortWithinGroup = sortWithinGroupStr == null ? groupSort : searcher.weightSort(SortSpecParsing.parseSortSpec(sortWithinGroupStr, req).getSort());if (sortWithinGroup == null) {sortWithinGroup = Sort.RELEVANCE;}