Unexpected results when sorting with deeply nested filters


#1

Howdy all.

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.published and 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?

Thanks!
Paul


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.