Skip to content

Commit

Permalink
bring back the constructor InternalSearchResponse
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 d1d5ef1 commit 8dce9b4
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,29 @@ public InternalSearchResponse(
);
}

public InternalSearchResponse(
SearchHits hits,
InternalAggregations aggregations,
Suggest suggest,
SearchProfileShardResults profileResults,
boolean timedOut,
Boolean terminatedEarly,
int numReducePhases,
List<SearchExtBuilder> searchExtBuilderList
) {
this(

Check warning on line 124 in server/src/main/java/org/opensearch/search/internal/InternalSearchResponse.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/search/internal/InternalSearchResponse.java#L124

Added line #L124 was not covered by tests
hits,
aggregations,
suggest,
profileResults,
timedOut,
terminatedEarly,
numReducePhases,
searchExtBuilderList,
Collections.emptyList()

Check warning on line 133 in server/src/main/java/org/opensearch/search/internal/InternalSearchResponse.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/search/internal/InternalSearchResponse.java#L133

Added line #L133 was not covered by tests
);
}

public InternalSearchResponse(StreamInput in) throws IOException {
super(
new SearchHits(in),
Expand Down

0 comments on commit 8dce9b4

Please sign in to comment.