Date format inconsistent between the Fields API and search_after
#68988
Labels
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
When discussing #67063 and its effects on the usage of the Fields API in Discover, we had agreed with Nik to explicitly request the date format with each date field.
This works fine for
date_nanos
mapping, but fordate_nanos
mapping with a custom date format, there seems to be an issue when passing the same date back insearch_after
. It looks like the same format is not accepted insearch_after
.Eg:
For the mapping: https://github.com/elastic/kibana/blob/c42d23347a901ae7b7af5855eaddc8c2972762cc/test/functional/fixtures/es_archiver/date_nanos_custom/mappings.json#L18
If we read the date from the fields section when displaying the context view, we use the
search_after
in the query. The exception we get in this case is:Specifying a format is one thing, but Kibana should not be doing a "normalization" of dates between taking an ES response and providing its values back to ES.
The text was updated successfully, but these errors were encountered: