elastic/elasticsearch

Fail sorting when the field is under a nested object but no `nested_path` is specified

Open

#21,704 opened on Nov 21, 2016

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Java (25,882 forks)batch import
:Search Relevance/Search>enhancementTeam:Search Relevancehelp wanted

Repository metrics

Stars
 (76,700 stars)
PR merge metrics
 (Avg merge 2d) (1,000 merged PRs in 30d)

Description

Follow-up to #21685. Maybe we should fail queries when a sort field is under a nested object and this nested object does not copy data to the parent/root (include_in_parent) since that would always be a mistake?

Contributor guide