File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Nest/Document/Multiple/Bulk/BulkResponseItem
Tests/Tests/Document/Multiple/Bulk Expand file tree Collapse file tree 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
1010 public override string Operation { get ; internal set ; }
1111
1212 /// <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.
1415 /// </summary>
1516 [ JsonProperty ( "matches" ) ]
1617 public IEnumerable < string > Matches { get ; internal set ; }
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ public interface IBulkResponseItem
3838 [ JsonProperty ( "_version" ) ]
3939 long Version { get ; }
4040
41+ /// <summary>
42+ /// The result of the bulk operation
43+ /// </summary>
44+ [ JsonProperty ( "result" ) ]
45+ string Result { get ; }
46+
4147 /// <summary>
4248 /// The status of the bulk operation
4349 /// </summary>
@@ -86,6 +92,9 @@ public abstract class BulkResponseItemBase : IBulkResponseItem
8692 /// <inheritdoc />
8793 public long Version { get ; internal set ; }
8894
95+ /// <inheritdoc />
96+ public string Result { get ; internal set ; }
97+
8998 /// <inheritdoc />
9099 public int Status { get ; internal set ; }
91100
Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ protected override void ExpectResponse(IBulkResponse response)
144144 item . Shards . Successful . Should ( ) . BeGreaterThan ( 0 ) ;
145145 item . SequenceNumber . Should ( ) . BeGreaterOrEqualTo ( 0 ) ;
146146 item . PrimaryTerm . Should ( ) . BeGreaterThan ( 0 ) ;
147+ item . Result . Should ( ) . NotBeNullOrEmpty ( ) ;
147148 }
148149
149150 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