# Nested: IllegalArgumentException\[Rollup search must have size explicitly set to 0, but found 1\]

**URL:** <https://forum.opensearch.org/t/nested-illegalargumentexception-rollup-search-must-have-size-explicitly-set-to-0-but-found-1/27698>\
**Category:** OpenSearch\
**Created:** [January 11, 2026, 10:40am UTC](https://forum.opensearch.org/t/nested-illegalargumentexception-rollup-search-must-have-size-explicitly-set-to-0-but-found-1/27698 "2026-01-11T10:40:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gourabh09](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@gourabh09](https://forum.opensearch.org/u/gourabh09)\
**Post date:** [January 11, 2026, 10:40am UTC](https://forum.opensearch.org/t/nested-illegalargumentexception-rollup-search-must-have-size-explicitly-set-to-0-but-found-1/27698/1 "2026-01-11T10:40:38Z")

</div>

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

**Describe the issue** :

I am creating rollup - job able to get target index but there is no document processed into that target index from source

[2026-01-09T09:51:31,880][ERROR][o.o.i.r.RollupMetadataService] [pg-dhemeka1.ua6.gbucdsint02phx.oraclevcn.com] Error when getting initial start time for rollup [my-roll-jon]: Failed to execute phase [can\_match], Partial shards failure; shardFailures {[qOpOUFQYRUijPoFKCmdRYg][metrics-resultant1][0]: RemoteTransportException[[pg-dhemeka1.ua6.gbucdsint02phx.oraclevcn.com][12.0.0.61:9300][indices:data/read/search[can\_match]]]; nested: IllegalArgumentException[Rollup search must have size explicitly set to 0, but found 1]; }{[qOpOUFQYRUijPoFKCmdRYg][metrics-t][0]: RemoteTransportException[[pg-dhemeka1.ua6.gbucdsint02phx.oraclevcn.com][12.0.0.61:9300][indices:data/read/search[can\_match]]]; nested: IllegalArgumentException[Rollup search must have size explicitly set to 0, but found 1]; }{[qOpOUFQYRUijPoFKCmdRYg][metrics-test][0]: RemoteTransportException[[pg-dhemeka1.ua6.gbucdsint02phx.oraclevcn.com][12.0.0.61:9300][indices:data/read/search[can\_match]]]; nested: IllegalArgumentException[Rollup search must have size explicitly set to 0, but found 1]; }{[qOpOUFQYRUijPoFKCmdRYg][metrics-test-without-any-metrics][0]: RemoteTransportException[[pg-dhemeka1.ua6.gbucdsint02phx.oraclevcn.com][12.0.0.61:9300][indices:data/read/search[can\_match]]]; nested: IllegalArgumentException[Rollup search must have size explicitly set to 0, but found 1];

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [March 31, 2026, 8:32pm UTC](https://forum.opensearch.org/t/nested-illegalargumentexception-rollup-search-must-have-size-explicitly-set-to-0-but-found-1/27698/2 "2026-03-31T20:32:45Z")

</div>

@gourabh09 Did you resolve your issue?

Your error reports the following indices:

- `metrics-resultant1`
- `metrics-t`
- `metrics-test`
- `metrics-test-without-any-metrics`

Were these concrete indices?

---

<div class="post-metadata">

**Author:** ![gourabh09](https://avatars.discourse-cdn.com/v4/letter/g/958977/32.png) [@gourabh09](https://forum.opensearch.org/u/gourabh09)\
**Post date:** [April 1, 2026, 4:51am UTC](https://forum.opensearch.org/t/nested-illegalargumentexception-rollup-search-must-have-size-explicitly-set-to-0-but-found-1/27698/3 "2026-04-01T04:51:25Z")

</div>

This indices i used as target indices so i don’t think that is problem but error i am getting is in discover i guess in documentation it is mention we can’t get data rollup data in same type of query .

---

<div class="post-metadata">

**Author:** ![pablo](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/pablo/32/10363_2.png) [@pablo](https://forum.opensearch.org/u/pablo)\
**Post date:** [April 1, 2026, 9:49am UTC](https://forum.opensearch.org/t/nested-illegalargumentexception-rollup-search-must-have-size-explicitly-set-to-0-but-found-1/27698/4 "2026-04-01T09:49:17Z")

</div>

@gourabh09 Could you share the link to that part in the documentation?  
What are your source indices? Did you use index pattern?
