Collapse within top hit aggregation results

I'm trying to do this (two level collapse)
Screen Shot 2021-08-19 at 8.57.35 AM

but with top_hits aggregation. Essentially I want to be able to have a collapse inside of the top_hits aggregation but it's not supported.

Is there any way to make this work? The two level collapse works. I'm trying to see if I can get a better performance with top_hits aggregation.


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