SOLR-6203: in QueryComponent rename groupSortStr to sortWithinGroupStr (so that name and meaning match)

This commit is contained in:
Christine Poerschke 2016-10-15 20:56:05 -04:00
parent c620fc2954
commit e87072bc5a
1 changed files with 2 additions and 2 deletions

View File

@ -258,9 +258,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;
}