-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Highlighting fails with a cryptic error when issuing a custom query #6287
Copy link
Copy link
Closed
Labels
Feature:DiscoverDiscover ApplicationDiscover ApplicationFeature:HighlightHighlighting of content via queryHighlighting of content via queryTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experiencefeedback_neededstill valid?
Metadata
Metadata
Assignees
Labels
Feature:DiscoverDiscover ApplicationDiscover ApplicationFeature:HighlightHighlighting of content via queryHighlighting of content via queryTeam:VisualizationsTeam label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t//bugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experiencefeedback_neededstill valid?
Type
Fields
Give feedbackNo fields configured for issues without a type.
I'm aware parent child queries are not officially supported, but elasticsearch custom DSL queries are. Upon upgrading from 4.2.1 to 4.3.0 (and still present in 4.4.1) I found that queries that used to work no longer did so.
After quite a bit of tracking down, I found that highlighting was responsible.
Steps to reproduce
Issue the query:
{"has_parent":{"query":{"match":{"name":"foo"}},"type":"parent_type"}}
Results in:

Elasticsearch logs showing the error(for reference)
Upon changing kibana settings to disable highlighting, this same search will return the expected results.
In my opinion highlighting causing any search to not function is unreasonable.
Suggestions for potential solutions include: