Sort on dynamic field fails on Elasticsearch if field has never been indexed yet

Description

See

When a dynamic field hasn’t appeared in any document yet, Elasticsearch is apparently unable to sort on it, even if it knows about the dynamic field templates. It requires us to specify the unmapped_type parameter in the sort.

Let’s test this edge case and fix it.

Activity

Show:
Fixed

Details

Assignee

Reporter

Components

Sprint

Priority

Created April 4, 2022 at 10:29 AM
Updated April 6, 2022 at 2:54 PM
Resolved April 4, 2022 at 1:21 PM