File tree 3 files changed +0
-12
lines changed
server/src/main/java/org/elasticsearch/search/sort
3 files changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -421,10 +421,6 @@ public SortFieldAndFormat build(QueryShardContext context) throws IOException {
421
421
throw new QueryShardException (context ,
422
422
"max_children is only supported on v6.5.0 or higher" );
423
423
}
424
- if (nestedSort .getNestedSort () != null && nestedSort .getMaxChildren () != Integer .MAX_VALUE ) {
425
- throw new QueryShardException (context ,
426
- "max_children is only supported on last level of nested sort" );
427
- }
428
424
validateMaxChildrenExistOnlyInTopLevelNestedSort (context , nestedSort );
429
425
nested = resolveNested (context , nestedSort );
430
426
} else {
Original file line number Diff line number Diff line change @@ -626,10 +626,6 @@ public SortFieldAndFormat build(QueryShardContext context) throws IOException {
626
626
throw new QueryShardException (context ,
627
627
"max_children is only supported on v6.5.0 or higher" );
628
628
}
629
- if (nestedSort .getNestedSort () != null && nestedSort .getMaxChildren () != Integer .MAX_VALUE ) {
630
- throw new QueryShardException (context ,
631
- "max_children is only supported on last level of nested sort" );
632
- }
633
629
// new nested sorts takes priority
634
630
validateMaxChildrenExistOnlyInTopLevelNestedSort (context , nestedSort );
635
631
nested = resolveNested (context , nestedSort );
Original file line number Diff line number Diff line change @@ -321,10 +321,6 @@ public SortFieldAndFormat build(QueryShardContext context) throws IOException {
321
321
throw new QueryShardException (context ,
322
322
"max_children is only supported on v6.5.0 or higher" );
323
323
}
324
- if (nestedSort .getNestedSort () != null && nestedSort .getMaxChildren () != Integer .MAX_VALUE ) {
325
- throw new QueryShardException (context ,
326
- "max_children is only supported on last level of nested sort" );
327
- }
328
324
// new nested sorts takes priority
329
325
validateMaxChildrenExistOnlyInTopLevelNestedSort (context , nestedSort );
330
326
nested = resolveNested (context , nestedSort );
You can’t perform that action at this time.
0 commit comments