OpenSearch/server
Christoph Büscher 73b64908b2
Fix `time_zone` on `query_string` and date fields (#55881) (#56668)
Currently the `time_zone` parameter in `query_string` queries gets applied
correctly only when using the range syntax, e.g "date:[2020-01-02 TO
2020-01-05]. When a date field gets searched without explicit range syntax, e.g.
"date:"2020-01-01" we internally create a range query than uses the specified
date as start date and rounds up to the next underspecified units for the end
date (e.g. here 2020-01-01T23:59:59) without considering the `time_zone`
settings. This change adds a check in QueryStringQueryParser to detect this
scenario early where we have access to the time zone information and directly
create a range query using it.

Closes #55813
2020-05-13 11:20:25 +02:00
..
licenses Upgrade to lucene 8.5.1 release (#55229) (#55235) 2020-04-15 17:35:42 +02:00
src Fix `time_zone` on `query_string` and date fields (#55881) (#56668) 2020-05-13 11:20:25 +02:00
build.gradle Migrate remaining ESIntegTestCases to internalClusterTest (#56479) (#56563) 2020-05-11 21:06:04 -07:00