File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Nest.Tests.Integration/Cluster Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ public void SimpleState()
1616 Assert . NotNull ( r . Metadata ) ;
1717 Assert . NotNull ( r . Metadata . Indices ) ;
1818 Assert . True ( r . Metadata . Indices . Count > 0 ) ;
19+ foreach ( var index in r . Metadata . Indices )
20+ {
21+ Assert . NotNull ( index . Value . Mappings ) ;
22+ Assert . True ( index . Value . Mappings . Count > 0 ) ;
23+ }
24+
1925 Assert . NotNull ( r . Nodes ) ;
2026 Assert . True ( r . Nodes . Count > 0 ) ;
2127 Assert . NotNull ( r . RoutingNodes ) ;
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ public class MetadataIndexState
7777 [ JsonProperty ( "settings" ) ]
7878 public Dictionary < string , string > Settings { get ; internal set ; }
7979
80- // [JsonProperty("mappings")]
81- // public Dictionary<string, MetadataIndexStateMapping > Mappings { get; internal set; }
80+ [ JsonProperty ( "mappings" ) ]
81+ public Dictionary < string , dynamic > Mappings { get ; internal set ; }
8282
8383 //[JsonProperty("aliases")]
8484 //public ?? Aliases { get; internal set; }
You can’t perform that action at this time.
0 commit comments