I'm trying to perform some sorting based on the attributes of a document's deeply nested children. The example is provided here, along with
curl commands for reproducing the index/mappings:
Basically, when my nested_filter has terms that are applied to different nested paths (in the above example, it's
books.genre_scores.genre_id), some weird results are being used as the sorting value.
Can anyone provide some insight as to why this behavior is happening? And additionally, if there are any viable solutions to the proposed query/sort?