File tree 3 files changed +12
-1
lines changed
Nest/Document/Multiple/Bulk/BulkResponseItem
Tests/Tests/Document/Multiple/Bulk
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ public class BulkIndexResponseItem : BulkResponseItemBase
10
10
public override string Operation { get ; internal set ; }
11
11
12
12
/// <summary>
13
- /// Null if Percolation was not requested while indexing this doc, otherwise returns the percolator _ids that matched (if any)
13
+ /// The _ids that matched (if any) for the Percolate API.
14
+ /// Will be null if the operation is not in response to Percolate API.
14
15
/// </summary>
15
16
[ JsonProperty ( "matches" ) ]
16
17
public IEnumerable < string > Matches { get ; internal set ; }
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ public interface IBulkResponseItem
38
38
[ JsonProperty ( "_version" ) ]
39
39
long Version { get ; }
40
40
41
+ /// <summary>
42
+ /// The result of the bulk operation
43
+ /// </summary>
44
+ [ JsonProperty ( "result" ) ]
45
+ string Result { get ; }
46
+
41
47
/// <summary>
42
48
/// The status of the bulk operation
43
49
/// </summary>
@@ -86,6 +92,9 @@ public abstract class BulkResponseItemBase : IBulkResponseItem
86
92
/// <inheritdoc />
87
93
public long Version { get ; internal set ; }
88
94
95
+ /// <inheritdoc />
96
+ public string Result { get ; internal set ; }
97
+
89
98
/// <inheritdoc />
90
99
public int Status { get ; internal set ; }
91
100
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ protected override void ExpectResponse(IBulkResponse response)
144
144
item . Shards . Successful . Should ( ) . BeGreaterThan ( 0 ) ;
145
145
item . SequenceNumber . Should ( ) . BeGreaterOrEqualTo ( 0 ) ;
146
146
item . PrimaryTerm . Should ( ) . BeGreaterThan ( 0 ) ;
147
+ item . Result . Should ( ) . NotBeNullOrEmpty ( ) ;
147
148
}
148
149
149
150
var project1 = this . Client . Source < Project > ( Project . Instance . Name , p => p . Index ( CallIsolatedValue ) ) ;
You can’t perform that action at this time.
0 commit comments