Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JeroenRe opened this issue May 6, 2014 · 4 comments
Closed

Comments

@JeroenRe
Copy link

JeroenRe commented May 6, 2014

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
    )
)
@Mpdreamz
Copy link
Member

Mpdreamz commented May 8, 2014

Hi @JeroenRe this is definitely a bug in NEST and is now fixed in 844caad

Thanks for finding and reporting this bug 👍

@alanprot
Copy link

When it goes to beta?

PS: Sorry for duplicating the issue...

@mcphersonwhite
Copy link

Thank you!

Please advise when this in beta. Thanks again.

@gmarz
Copy link
Contributor

gmarz commented Aug 7, 2014

Hey @mcphersonwhite, we're already passed beta ;). You can grab the latest stable version, 1.0.1, which includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants