mirror of https://github.com/apache/lucene.git
SOLR-10659: Remove ResponseBuilder.getSortSpec use in SearchGroupShardResponseProcessor. (Judith Silverman via Christine Poerschke)
This commit is contained in:
parent
2bb6e2caca
commit
6ba1834bc3
|
@ -256,6 +256,9 @@ Other Changes
|
|||
* SOLR-10438: Assign explicit useDocValuesAsStored values to all points field types in
|
||||
schema-point.xml/TestPointFields. (hossman, Steve Rowe)
|
||||
|
||||
* SOLR-10659: Remove ResponseBuilder.getSortSpec use in SearchGroupShardResponseProcessor.
|
||||
(Judith Silverman via Christine Poerschke)
|
||||
|
||||
================== 6.6.0 ==================
|
||||
|
||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||
|
|
|
@ -52,7 +52,7 @@ public class SearchGroupShardResponseProcessor implements ShardResponseProcessor
|
|||
*/
|
||||
@Override
|
||||
public void process(ResponseBuilder rb, ShardRequest shardRequest) {
|
||||
SortSpec ss = rb.getSortSpec();
|
||||
SortSpec groupSortSpec = rb.getGroupingSpec().getGroupSortSpec();
|
||||
Sort groupSort = rb.getGroupingSpec().getGroupSort();
|
||||
final String[] fields = rb.getGroupingSpec().getFields();
|
||||
Sort withinGroupSort = rb.getGroupingSpec().getSortWithinGroup();
|
||||
|
@ -144,7 +144,7 @@ public class SearchGroupShardResponseProcessor implements ShardResponseProcessor
|
|||
rb.firstPhaseElapsedTime = maxElapsedTime;
|
||||
for (String groupField : commandSearchGroups.keySet()) {
|
||||
List<Collection<SearchGroup<BytesRef>>> topGroups = commandSearchGroups.get(groupField);
|
||||
Collection<SearchGroup<BytesRef>> mergedTopGroups = SearchGroup.merge(topGroups, ss.getOffset(), ss.getCount(), groupSort);
|
||||
Collection<SearchGroup<BytesRef>> mergedTopGroups = SearchGroup.merge(topGroups, groupSortSpec.getOffset(), groupSortSpec.getCount(), groupSort);
|
||||
if (mergedTopGroups == null) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue