Skip to content

Commit 8dc8e6d

Browse files
committed
expose num_reduce_phases as per elastic/elasticsearch#23288
1 parent 846359d commit 8dc8e6d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Nest/Search/Search/SearchResponse.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@ public interface ISearchResponse<T> : IResponse where T : class
7272
/// </summary>
7373
double MaxScore { get; }
7474

75+
/// <summary>
76+
/// Number of times the server performed an incremental reduce phase
77+
/// </summary>
78+
long NumberOfReducePhases { get; }
79+
7580
/// <summary>
7681
/// Gets the documents inside the hits, by deserializing <see cref="IHitMetadata{T}.Source"/> into T.
7782
/// <para>NOTE: if you use <see cref="ISearchRequest.StoredFields"/> on the search request,
@@ -141,6 +146,9 @@ public class SearchResponse<T> : ResponseBase, ISearchResponse<T> where T : clas
141146
[JsonProperty(PropertyName = "hits")]
142147
public HitsMetaData<T> HitsMetaData { get; internal set; }
143148

149+
[JsonProperty(PropertyName = "num_reduce_phases")]
150+
public long NumberOfReducePhases { get; internal set; }
151+
144152
[JsonIgnore]
145153
public long Total => this.HitsMetaData?.Total ?? 0;
146154

0 commit comments

Comments
 (0)