[Discover] Surrounding document views breaks on date nanos with custom formatter #92595
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Discover
Discover Application
regression
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
In 7.12 there is a scenario where the surrounding document view in Discover will break with a cryptic ES error:
This happens in the following situation:
date_nanos
field as it's primary timestampdate_nanos
fields has aformat
applied in it's ES mapping, that does NOT includestrict_date_optional_time_nanos
Workaround
Either of the following does solve that problem.
discover:searchFieldsFromSource
advanced setting on. This will read back from _source instead of the fields API, causing e.g. runtime fields not to appear anymore in Discover.strict_date_optional_time_nanos
is part of yourformat
option for thatdate_nanos
fields in the ES mapping.Fix
Blocked on elastic/elasticsearch#69192
Once this is solved we need to make sure we leverage that mechanism in Kibana to not have this error anymore.
The text was updated successfully, but these errors were encountered: