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

Missing documentation of formats on dates in range queries #30634

Closed
ensslen opened this issue May 16, 2018 · 1 comment
Closed

Missing documentation of formats on dates in range queries #30634

ensslen opened this issue May 16, 2018 · 1 comment
Labels
>docs General docs changes :Search/Search Search-related issues that do not fall into other categories

Comments

@ensslen
Copy link

ensslen commented May 16, 2018

Elasticsearch version (bin/elasticsearch --version):n/a

Plugins installed: n/a

JVM version (java -version): n/a

OS version (uname -a if on a Unix-like system): n/a

Description of the problem including expected versus actual behavior:
According to Elastic, formats on range queries need to resolve to a specific date. The documentation does not mention this.
Someone who knows how formats on dates in range queries work needs to update the documentation. It appears to me that the format always needs to include the year, and can only include finer grained periods if all of the coarser periods are specified.

Steps to reproduce: n/a

Provide logs (if relevant): n/a

@colings86 colings86 added the >docs General docs changes label May 16, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@colings86 colings86 added the :Search/Search Search-related issues that do not fall into other categories label May 16, 2018
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue May 17, 2018
The current documentation isn't very clear about how incomplete dates are
treated when specifying custom formats in a `range` query. This change adds a
note explaining how missing month or year coordinates translate to dates that
have the missings slots filled with unix time start date (1970-01-01)

Closes elastic#30634
cbuescher pushed a commit that referenced this issue May 24, 2018
The current documentation isn't very clear about how incomplete dates are
treated when specifying custom formats in a `range` query. This change adds a
note explaining how missing month or year coordinates translate to dates that
have the missings slots filled with unix time start date (1970-01-01)

Closes #30634
cbuescher pushed a commit that referenced this issue May 24, 2018
The current documentation isn't very clear about how incomplete dates are
treated when specifying custom formats in a `range` query. This change adds a
note explaining how missing month or year coordinates translate to dates that
have the missings slots filled with unix time start date (1970-01-01)

Closes #30634
cbuescher pushed a commit that referenced this issue May 24, 2018
The current documentation isn't very clear about how incomplete dates are
treated when specifying custom formats in a `range` query. This change adds a
note explaining how missing month or year coordinates translate to dates that
have the missings slots filled with unix time start date (1970-01-01)

Closes #30634
cbuescher pushed a commit that referenced this issue May 24, 2018
The current documentation isn't very clear about how incomplete dates are
treated when specifying custom formats in a `range` query. This change adds a
note explaining how missing month or year coordinates translate to dates that
have the missings slots filled with unix time start date (1970-01-01)

Closes #30634
cbuescher pushed a commit that referenced this issue May 24, 2018
The current documentation isn't very clear about how incomplete dates are
treated when specifying custom formats in a `range` query. This change adds a
note explaining how missing month or year coordinates translate to dates that
have the missings slots filled with unix time start date (1970-01-01)

Closes #30634
cbuescher pushed a commit that referenced this issue May 24, 2018
The current documentation isn't very clear about how incomplete dates are
treated when specifying custom formats in a `range` query. This change adds a
note explaining how missing month or year coordinates translate to dates that
have the missings slots filled with unix time start date (1970-01-01)

Closes #30634
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes :Search/Search Search-related issues that do not fall into other categories
Projects
None yet
Development

No branches or pull requests

3 participants