elastic/elasticsearch

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

Open

#21704 opened on Nov 21, 2016

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

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