Getting incorrect value count using reverse nested aggregation when using more than 1 nested level #7505
Using the following hierarchical data structure
I am trying to find number of books by genre given book.publisher and book.review.rating, but getting incorrect value count aggregate result.
This is working correctly if I use only 2 levels (book and review), but when I add author level also
Mapping, data and query used below: