Skip to content

Aggregations with integers as key returns null on keyfield in Nest.KeyItem #730

Closed
@andersfa87

Description

@andersfa87

I have a query that returns some term aggregations, but when adding the terms where the key is a number, the key will be null on the Nest.KeyItem and the DocCount zero. The aggregations with text keys work just fine. If I run the same query in sense, the values look as expected. My guess is it happens during deserialization, but I wasn't able to find the correct spot. Attached is 2 images showing the data.

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