File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
server/src/main/java/org/opensearch/action/search Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -623,11 +623,12 @@ private static Sort createSort(TopFieldDocs[] topFieldDocs) {
623
623
SortField .Type sortType = getSortType (sortField );
624
624
if (SortedWiderNumericSortField .isTypeSupported (sortType ) == false ) {
625
625
// throw exception if sortType is not CUSTOM?
626
+ // skip this shard or do not widen?
626
627
requireWiden = false ;
627
628
break ;
628
629
}
629
- requireWiden = sortType != firstType ;
630
- isFloat = sortType == SortField .Type .FLOAT || sortType == SortField .Type .DOUBLE ;
630
+ requireWiden = requireWiden || sortType != firstType ;
631
+ isFloat = isFloat || sortType == SortField .Type .FLOAT || sortType == SortField .Type .DOUBLE ;
631
632
}
632
633
633
634
if (requireWiden ) {
You can’t perform that action at this time.
0 commit comments