Skip to content

Commit

Permalink
bring back the constructor SearchResponseSections
Browse files Browse the repository at this point in the history
Signed-off-by: Junwei Dai <[email protected]>
  • Loading branch information
Junwei Dai committed Jan 23, 2025
1 parent 46d14a5 commit d1d5ef1
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,29 @@ public SearchResponseSections(
this.searchExtBuilders.addAll(Objects.requireNonNull(searchExtBuilders, "searchExtBuilders must not be null"));
}

public SearchResponseSections(
SearchHits hits,
Aggregations aggregations,
Suggest suggest,
boolean timedOut,
Boolean terminatedEarly,
SearchProfileShardResults profileResults,
int numReducePhases,
List<SearchExtBuilder> searchExtBuilders
) {
this(
hits,
aggregations,
suggest,
timedOut,
terminatedEarly,
profileResults,
numReducePhases,
searchExtBuilders,
Collections.emptyList()
);
}

public final boolean timedOut() {
return this.timedOut;
}
Expand Down

0 comments on commit d1d5ef1

Please sign in to comment.