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

Java API : DateRangeFacet - get formatted to and from according to "format" parameter #9003

Closed
runarmyklebust opened this issue Dec 18, 2014 · 1 comment · Fixed by #9026
Closed

Comments

@runarmyklebust
Copy link

From the Java api, there is no way as I can see at the moment to get a String representation of "from" and "to" as given by the "format" input parameter, rendering this option more or less useless (except for the specialized value in key which does not fit the bill in all cases).

@clintongormley
Copy link

Facets are deprecated, but this also applies to aggs

@colings86 colings86 self-assigned this Dec 22, 2014
colings86 added a commit that referenced this issue Dec 22, 2014
Adds getToAsString and getFromAsString to Range interface and implements them for all range aggregations

Closes #9003
Josh-Tilles added a commit to Josh-Tilles/elastisch that referenced this issue May 19, 2016
Josh-Tilles added a commit to Josh-Tilles/elastisch that referenced this issue May 20, 2016
Josh-Tilles added a commit to Josh-Tilles/elastisch that referenced this issue May 20, 2016
As of Elasticsearch 1.5, the methods `Range#getFromAsString` and
`Range#getToAsString` are available.

For more information, see:
- <elastic/elasticsearch@2b47e54>
- <elastic/elasticsearch#9003>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants