# Search for Aggregation results

**URL:** <https://discuss.elastic.co/t/search-for-aggregation-results/274030>\
**Category:** Elasticsearch\
**Created:** [May 26, 2021, 9:26am UTC](https://discuss.elastic.co/t/search-for-aggregation-results/274030 "2021-05-26T09:26:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishnapss](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@krishnapss](https://discuss.elastic.co/u/krishnapss)\
**Post date:** [May 26, 2021, 9:26am UTC](https://discuss.elastic.co/t/search-for-aggregation-results/274030/1 "2021-05-26T09:26:48Z")

</div>

Hi,  
Could someone help me to achieve this functionality.  
Aggregation results are 500 to 5000 on different fields (data is in millions).  
I have used **CompositeAggregation** for pagination.  
But for user it is not great to go through paging when there are many results.  
How can I Search on Aggretations of a filed(or a nested field)?  
For e.g. I would like provide a search box within a Facet or (aggregation) in UI.  
when the user enters some text get the **Aggregation results** based on the user text.

Thank you,  
Krishna

---

<div class="post-metadata">

**Author:** ![krishnapss](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@krishnapss](https://discuss.elastic.co/u/krishnapss)\
**Post date:** [May 28, 2021, 10:33am UTC](https://discuss.elastic.co/t/search-for-aggregation-results/274030/2 "2021-05-28T10:33:18Z")

</div>

Hi,  
We are using NEST client.  
Could anyone please point me in right direction.

Thank you,  
Krishna

---

<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:** [June 25, 2021, 10:33am UTC](https://discuss.elastic.co/t/search-for-aggregation-results/274030/3 "2021-06-25T10:33:31Z")

</div>

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