Skip to content

Terms aggregation on numeric field does not return the Key in respons #643

@JeroenRe

Description

@JeroenRe

Hi,

It seems that when using terms aggregation on a numeric field, the Key is always null in ES respons.
Is this normal behaviour? (or ES default)...

I am using an query to count the times a numeric value is used in a specifc period by examining log data. (example value 123 exists 3x as a stored document).
123 blalalaksks
123 igugugjgjgj
123 firirurututu
144 something else...

 //Aggregate per article to count saves per article
.Aggregations(aaa => aaa
    .Terms(FilterNames.Record.ToString(), u => u
        .Field(fl => fl.record)    //Record is numeric field (long)
        .Size(0)    //Retrieves all unique terms in buckets
    )
)

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