Sorting based on a a field in nested level

I want to sort based on a calculated field at nested level.

For example, I have item buckets, each bucket has items which has different prices, I have attained a result which has list of buckets and inside bucket, I have sorted items on minimum price. I am able to run a inner hit to reorder items based on min price, I also want to sort buckets in the result set on minimum price, please suggest how can I do so.

But when I perform sort on document level, I am not able to fetch inner hit sorted items, hence not able to sort based on those. Is there a possibility to access sorted items in inner hits, or a way to assign a score at document level based on price value.

Thanks.

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