Skip to content

Cannot access response data on Indices.GetAlias API #7048

Closed
@Alkaersig

Description

@Alkaersig

Elastic.Clients.Elasticsearch version:
8.0.0-rc.2

Elasticsearch version:
8.x.x

.NET runtime version:
6.0

Operating system version:
Windows 11

Description of the problem including expected versus actual behavior:
According to the list of supported API's the Indices.GetAlias is supported in the current version. But no data is accessible in the response (AliasResponse), only whether the response is valid (IsValidResponse) along with Error, Warnings, DebugInformation and API Call Details.

As i read the specifications a dictionary should be available:
body: Dictionary<IndexName, IndexAliases>

Which matches the data returned from a direct HTTP request to the API endpoint.

If i look into the AliasResponse through debugging there is a non-accessible BackingDictionary that holds the values of the response, but as this is not accessible it is not of much help.

So for now this method is not of much use other than checking for existence, which already has its own API.

Steps to reproduce:

  1. Make a call to ES 8 using esClient.Indices.GetAliasAsync()
  2. Inspect the returned AliasResponse, it has no accessible Dictionary<IndexName, IndexAliases>

Expected behavior
Response should contain an accessible dictionary of IndexName, IndexAliases

Metadata

Metadata

Assignees

No one assigned

    Labels

    8.xRelates to a 8.x client version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions