File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Nest/Indices/IndexManagement/CreateIndex
Tests/Tests/Indices/IndexManagement/CreateIndex Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,15 @@ public interface ICreateIndexResponse : IAcknowledgedResponse
77 {
88 [ JsonProperty ( "shards_acknowledged" ) ]
99 bool ShardsAcknowledged { get ; }
10+
11+ [ JsonProperty ( "index" ) ]
12+ string Index { get ; }
1013 }
1114
1215 public class CreateIndexResponse : AcknowledgedResponseBase , ICreateIndexResponse
1316 {
1417 public bool ShardsAcknowledged { get ; set ; }
18+
19+ public string Index { get ; set ; }
1520 }
1621}
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ protected override void ExpectResponse(ICreateIndexResponse response)
205205 response . ShouldBeValid ( ) ;
206206 response . Acknowledged . Should ( ) . BeTrue ( ) ;
207207 response . ShardsAcknowledged . Should ( ) . BeTrue ( ) ;
208+ response . Index . Should ( ) . Be ( CallIsolatedValue ) ;
208209
209210 var indexSettings = Client . GetIndexSettings ( g => g . Index ( CallIsolatedValue ) ) ;
210211
You can’t perform that action at this time.
0 commit comments