You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Make a call to ES 8 using esClient.Indices.GetAliasAsync()
Inspect the returned AliasResponse, it has no accessible Dictionary<IndexName, IndexAliases>
Expected behavior
Response should contain an accessible dictionary of IndexName, IndexAliases
The text was updated successfully, but these errors were encountered:
Thanks for raising this. Indeed, this looks like a bug in the code generator, which isn't emitting the public property to access the backing dictionary. This affects most types deriving from DictionaryResponse:
GetAliasResponse
GetFieldMappingResponse
GetIndexResponse
GetTemplateResponse
The solution is to emit the appropriate property during code-generation or to manually add the properties and accessor methods as we do for GetMappingResponse.
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:
Expected behavior
Response should contain an accessible dictionary of IndexName, IndexAliases
The text was updated successfully, but these errors were encountered: