Release notes v8.0.5

edit

Bug fixes

edit
  • #7171 Fix code-gen for IndexTemplate (issue: #7161)
  • #7181 Fix MultiGet response deserialization for non-matched IDs (issue: #7169)
  • #7182 Implement Write method on SourceConfigConverter (issue: #7170)
  • #7205 Update to Elastic.Transport to 0.4.6 which improves the version detection used by the REST API compatibility Accept header

Breaking changes

edit

In the course of fixing the code-generation for index templates to avoid serialization failures, some breaking changes were introduced.

IndexTemplate

edit

IndexTemplate forms part of the IndexTemplateItem included on GetIndexTemplateResponse.

  • The type for the ComposedOf property has changed from IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name> to IReadOnlyCollection<string>
  • The type for the IndexPatterns property has changed from Elastic.Clients.Elasticsearch.Names to IReadOnlyCollection<string>

Before

public sealed partial class IndexTemplate
{
   ...
   public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name> ComposedOf { get; init; }
   public Elastic.Clients.Elasticsearch.Names IndexPatterns { get; init; }
   ...
}

After

public sealed partial class IndexTemplate
{
   ...
   public IReadOnlyCollection<string> ComposedOf { get; init; }
   public IReadOnlyCollection<string> IndexPatterns { get; init; }
   ...
}

SimulateIndexTemplateRequest

edit
  • The type for the ComposedOf property has changed from IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name> to IReadOnlyCollection<string>

Before

public sealed partial class SimulateIndexTemplateRequest
{
   ...
   public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name>? ComposedOf { get; set; }
   ...
}

After

public sealed partial class SimulateIndexTemplateRequest
{
   ...
   public IReadOnlyCollection<string>? ComposedOf { get; set; }
   ...
}

SimulateIndexTemplateRequestDescriptor and SimulateIndexTemplateRequestDescriptor<T>

edit

The ComposedOf method signature has changed to accept a parameter of ICollection<string>? instead of ICollection<Elastic.Clients.Elasticsearch.Name>?.

Before

public SimulateIndexTemplateRequestDescriptor<TDocument> ComposedOf(ICollection<Elastic.Clients.Elasticsearch.Name>? composedOf)

After

public SimulateIndexTemplateRequestDescriptor<TDocument> ComposedOf(ICollection<string>? composedOf)