Skip to content

Commit 22d72d1

Browse files
committed
Merge pull request #341 from ashwinsa/master
Fix for issue #340 #340
2 parents e0e7a54 + ac2dd54 commit 22d72d1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/Nest.Tests.Integration/Cluster/StateTests.cs

Lines changed: 6 additions & 0 deletions
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);

src/Nest/Domain/State/ClusterState.cs

Lines changed: 2 additions & 2 deletions
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)