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

date_range not supported #53

Closed
clennpillo opened this issue Sep 1, 2016 · 2 comments
Closed

date_range not supported #53

clennpillo opened this issue Sep 1, 2016 · 2 comments

Comments

@clennpillo
Copy link

Is this compatible with the latest version of elasticsearch 2.4.0 ? I've tested with the new aggregation method called date_range but failed.

@danpaz
Copy link
Owner

danpaz commented Sep 2, 2016

The date_range aggregation hasn't been added to this lib yet, though you may be able to use a histogram for the same result. Otherwise you're welcome to make a PR to add date_range, it should be fairly straightforward to follow the pattern in src/aggregations -- let me know if I can help!

@danpaz
Copy link
Owner

danpaz commented Jan 17, 2017

The next version of bodybuilder will support date_range aggregations, give it a try by installing the beta release:

npm install bodybuilder@beta

And see this example for its usage.

If this doesn't solve your issue please reopen!

@danpaz danpaz closed this as completed Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants