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

DateHistogram aggregation - OrderDescending #996

Closed
PetterBronsta opened this issue Oct 16, 2014 · 2 comments
Closed

DateHistogram aggregation - OrderDescending #996

PetterBronsta opened this issue Oct 16, 2014 · 2 comments

Comments

@PetterBronsta
Copy link

When selecting OrderDescending, the output get's written as OrderAscending.

Extract:
.DateHistogram("someAggregation", mpy => mpy
.Field("someField")
.Interval("year")
.OrderDescending("_key")

raw output:
"date_histogram": {
"field": "someField",
"interval": "year",
"format": "yyyy-MM-dd",
"order": {
"_key": "asc"
}
}

@Mpdreamz
Copy link
Member

How horribly embarrassing! This is now fixed and should be fixed in the next release.

Thanks for reporting 👍

@PetterBronsta
Copy link
Author

Wow, quick reaction to the issue! Thanks for fixing it!

@gmarz gmarz added Bug and removed v1.1.3 labels Oct 17, 2014
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

3 participants