# How see more than default of ten?

**URL:** <https://discuss.elastic.co/t/how-see-more-than-default-of-ten/25748>\
**Category:** Elasticsearch\
**Created:** [July 16, 2015, 8:19pm UTC](https://discuss.elastic.co/t/how-see-more-than-default-of-ten/25748 "2015-07-16T20:19:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gginsburg](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@gginsburg](https://discuss.elastic.co/u/gginsburg)\
**Post date:** [July 16, 2015, 8:19pm UTC](https://discuss.elastic.co/t/how-see-more-than-default-of-ten/25748/1 "2015-07-16T20:19:24Z")

</div>

I’m self training on Elasticsearch (ES) on the web. In regard to this page, [https://www.elastic.co/guide/en/elasticsearch/reference/current/\_executing\_aggregations.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/_executing_aggregations.html), how would one see results returned for more than ten states, (ten being the default)?

curl -XPOST 'localhost:9200/bank/\_search?pretty' -d '  
{  
"size": 0,  
"aggs": {  
"group\_by\_state": {  
"terms": {  
"field": "state"  
}  
}  
}  
}'

I tried sticking a “size: 20”, for example inside the ‘aggs’ section but it didn’t work.

Thanks.

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [July 16, 2015, 8:24pm UTC](https://discuss.elastic.co/t/how-see-more-than-default-of-ten/25748/2 "2015-07-16T20:24:06Z")

</div>

Have a look at this section of the documentation and the example in the code block that follows it: [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#\_size](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_size)

---

<div class="post-metadata">

**Author:** ![gginsburg](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@gginsburg](https://discuss.elastic.co/u/gginsburg)\
**Post date:** [July 16, 2015, 9:04pm UTC](https://discuss.elastic.co/t/how-see-more-than-default-of-ten/25748/3 "2015-07-16T21:04:43Z")

</div>

oh, okay, it goes right into the 'terms' section:

curl -XPOST 'localhost:9200/bank/\_search?pretty' -d '  
{  
"size": 0,  
"aggs": {  
"group\_by\_state": {  
"terms": {  
"field": "state",  
"size": 20  
}  
}  
}  
}'

thank you

---

<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:** [July 6, 2017, 12:00am UTC](https://discuss.elastic.co/t/how-see-more-than-default-of-ten/25748/4 "2017-07-06T00:00:57Z")

</div>


