# Collapse Search

**URL:** <https://discuss.elastic.co/t/collapse-search/267688>\
**Category:** Elasticsearch\
**Created:** [March 18, 2021, 3:19pm UTC](https://discuss.elastic.co/t/collapse-search/267688 "2021-03-18T15:19:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ToonB](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@ToonB](https://discuss.elastic.co/u/ToonB)\
**Post date:** [March 18, 2021, 3:19pm UTC](https://discuss.elastic.co/t/collapse-search/267688/1 "2021-03-18T15:19:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 15, 2021, 3:19pm UTC](https://discuss.elastic.co/t/collapse-search/267688/2 "2021-04-15T15:19:48Z")

</div>

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