Skip to content

Commit 4334e22

Browse files
authored
Add missing properties to AsyncSearch response. (#5997)
1 parent 7288643 commit 4334e22

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Nest/XPack/AsyncSearch/AsyncSearch.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public class AsyncSearch<TDocument> where TDocument : class
5555
[DataMember(Name ="num_reduce_phases")]
5656
public long NumberOfReducePhases { get; internal set; }
5757

58+
/// <inheritdoc cref="ISearchResponse{TDocument}.PointInTimeId"/>
59+
[DataMember(Name = "pit_id")]
60+
public string PointInTimeId { get; internal set; }
61+
5862
/// <inheritdoc cref="ISearchResponse{TDocument}.Profile" />
5963
[DataMember(Name ="profile")]
6064
public Profile Profile { get; internal set; }
@@ -82,5 +86,9 @@ public class AsyncSearch<TDocument> where TDocument : class
8286
/// <inheritdoc cref="ISearchResponse{TDocument}.Took" />
8387
[DataMember(Name ="took")]
8488
public long Took { get; internal set; }
89+
90+
/// <inheritdoc cref="ISearchResponse{TDocument}.Total" />
91+
[IgnoreDataMember]
92+
public long Total => HitsMetadata?.Total?.Value ?? -1;
8593
}
8694
}

0 commit comments

Comments
 (0)