Collapse Search

Hi. I am using Collapse Search to retrieve my search results collapsed to a certain field, in addition I use the inner_hits option to return the top hits for each collapse key. Because of the way Collapse Search works, it always returns a top sorted document per collapse key. But since I am only interested in the inner_hits, I don't want this top sorted document in my response. This top sorted document unnecessarily increases the size of my response because it also appears within the inner_hits results. Is there a possibility to hide this top sorted document from the Elasticsearch response?

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