Skip to content

Commit 1f38f35

Browse files
committed
Merge branch 'master' of github.com:Mpdreamz/NEST
2 parents f85a310 + 22d72d1 commit 1f38f35

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: src/Nest.Tests.Integration/Cluster/StateTests.cs

+6
Original file line numberDiff line numberDiff 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);

Diff for: src/Nest/Domain/State/ClusterState.cs

+2-2
Original file line numberDiff line numberDiff 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; }

0 commit comments

Comments
 (0)