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

Make date_range query rounding consistent with date (#50237) #51741

Merged
merged 3 commits into from
Jan 31, 2020

Conversation

cbuescher
Copy link
Member

Backport of #50237

Christoph Büscher added 3 commits January 31, 2020 14:17
Currently the rounding used in range queries can behave differently for `date`
and `date_range` as explained in elastic#50009. The behaviour on `date` fields is
the one we document in https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html#range-query-date-math-rounding.
This change adapts the rounding behaviour for RangeType.DATE so it uses the
same logic as the `date` for the `date_range` type.

Closes elastic#50009
@cbuescher cbuescher added >bug :Search/Search Search-related issues that do not fall into other categories backport labels Jan 31, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (:Search/Search)

@cbuescher cbuescher merged commit 86f3b47 into elastic:7.x Jan 31, 2020
cbuescher pushed a commit that referenced this pull request Jan 31, 2020
After backport of #50237 in #51741 the skip version in this test can be lowered.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >bug :Search/Search Search-related issues that do not fall into other categories v7.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants