Skip to content

Commit

Permalink
fix number of total shards in partial search response
Browse files Browse the repository at this point in the history
Signed-off-by: panguixin <[email protected]>
  • Loading branch information
bugmakerrrrrr authored and mch2 committed Apr 30, 2024
1 parent b014140 commit 3c795e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public SearchResponse partialResponse() {
protected void onListShards(List<SearchShard> shards, List<SearchShard> skippedShards, SearchResponse.Clusters clusters,
boolean fetchPhase) {
partialResultsHolder.hasFetchPhase.set(fetchPhase);
partialResultsHolder.totalShards.set(shards.size());
partialResultsHolder.totalShards.set(shards.size() + skippedShards.size());
partialResultsHolder.skippedShards.set(skippedShards.size());
partialResultsHolder.successfulShards.set(skippedShards.size());
partialResultsHolder.clusters.set(clusters);
Expand Down

0 comments on commit 3c795e0

Please sign in to comment.