Skip to content

Nest.MetadataIndexState missing Aliases #1275

@MattMinke

Description

@MattMinke

When querying the cluster's state the alias information is missing form the MetadataIndexState object. It is possible to get this information by calling GetAlias or GetAliasAsync, but this then requires an additional request to the cluster.

IElasticClient client = _clientProvider.Fetch();
IClusterStateResponse response = await client.ClusterStateAsync();

List<IndexInfo> data = new List<IndexInfo>();
foreach (KeyValuePair<string, MetadataIndexState> index in response.Metadata.Indices)
{
        index.Value.Aliases <= Missing
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions