Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force date format in context query (#22684)
* Force date format in context query Fixes issue reported in https://discuss.elastic.co/t/view-surrounding-documents-causes-failed-to-parse-date-field-exception/147234 The default date field format is `strict_date_optional_time||epoch_millis` so we didn't run into this during testing. If the user has custom mappings for their timestamp field and `epoch_millis` isn't one of the optional formats the context query will fail since it always sends the date in millis. This change forces the query to accept the date in millis. * Update tests
- Loading branch information