Skip to content

Commit 87c4d43

Browse files
committed
Fix #1275: add aliases to cluster state response
1 parent 273a5e5 commit 87c4d43

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Nest/Domain/State/ClusterState.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public class MetadataIndexState
9090
[JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))]
9191
public Dictionary<string, ObjectMapping> Mappings { get; internal set; }
9292

93-
//[JsonProperty("aliases")]
94-
//public ?? Aliases { get; internal set; }
93+
[JsonProperty("aliases")]
94+
public IEnumerable<string> Aliases { get; internal set; }
9595
}
9696
}

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public void SimpleState()
2222
if (!index.Key.StartsWith("nest"))
2323
continue;
2424
Assert.NotNull(index.Value.Mappings);
25+
Assert.NotNull(index.Value.Aliases);
2526
Assert.True(index.Value.Mappings.Count > 0, "{0}" , index.Key);
2627
}
2728

0 commit comments

Comments
 (0)