# How to get document from rollup result

**URL:** <https://forum.opensearch.org/t/how-to-get-document-from-rollup-result/13897>\
**Category:** OpenSearch\
**Tags:** troubleshoot\
**Created:** [April 12, 2023, 7:11am UTC](https://forum.opensearch.org/t/how-to-get-document-from-rollup-result/13897 "2023-04-12T07:11:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaiX](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@HaiX](https://forum.opensearch.org/u/HaiX)\
**Post date:** [April 12, 2023, 7:11am UTC](https://forum.opensearch.org/t/how-to-get-document-from-rollup-result/13897/1 "2023-04-12T07:11:28Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
OpenSearch 1.3.1

**Describe the issue** :  
After rollup operation, I’d like to check the document from rollup result. But if I change “size”: 0 to 1

POST example\_rollup/\_search  
{  
“size”: 0,

It will report error:  
“type” : “illegal\_argument\_exception”,  
“reason” : “Rollup search must have size explicitly set to 0, but found 1”

What’s the correct way to get document from the rollup result?

Thanks!

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![mkhl](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mkhl](https://forum.opensearch.org/u/mkhl)\
**Post date:** [April 17, 2023, 8:01am UTC](https://forum.opensearch.org/t/how-to-get-document-from-rollup-result/13897/2 "2023-04-17T08:01:43Z")

</div>

Hello,  
I don’t think it’s possible since original documents should be already removed during rollup.

---

<div class="post-metadata">

**Author:** ![HaiX](https://avatars.discourse-cdn.com/v4/letter/h/43a26b/32.png) [@HaiX](https://forum.opensearch.org/u/HaiX)\
**Post date:** [April 17, 2023, 9:06am UTC](https://forum.opensearch.org/t/how-to-get-document-from-rollup-result/13897/3 "2023-04-17T09:06:29Z")

</div>

I think the original index is still available, I can check original index and make rollup again. What’s the reason the rollup result index is limited and I can’t fetch document?

---

<div class="post-metadata">

**Author:** ![mkhl](https://avatars.discourse-cdn.com/v4/letter/m/e68b1a/32.png) [@mkhl](https://forum.opensearch.org/u/mkhl)\
**Post date:** [April 17, 2023, 9:53am UTC](https://forum.opensearch.org/t/how-to-get-document-from-rollup-result/13897/4 "2023-04-17T09:53:27Z")

</div>

If the document still exists you can `_search` it, but can not `_rollup_search` with hits=1.
