Skip to content

Date histrogram aggregation response class #8114

Closed
@RolfDeVries

Description

@RolfDeVries

Elastic.Clients.Elasticsearch version:
8.13.5

Elasticsearch version:
N/A

.NET runtime version:
.Net 8.0

Operating system version:
N/A

Description of the problem including expected versus actual behavior:
I'm upgrading from NEST 7.latest to the new Elastic.Clients.Elasticsearch version.
And I'm missing some features that are not yet supported

Steps to reproduce:

  1. Create code to call the search API with a date histogram in it

  2. Trying to parse the response of the Aggregations in the Search Api:

            var bucket = agg as DateHistogramAggregate;
            return bucket?.Buckets.NotNull()
                   .ToDictionary(s => s.Date, s => s.DocCount)
    

Expected behavior
In the NEST 7 version, the properties Date existed in the buckets of the aggregate
In the Elastic.Client.Elasticsearch 8 these field is missing, please add this back

Provide ConnectionSettings (if relevant):

Provide DebugInformation (if relevant):

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions