How see more than default of ten?

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, 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.

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

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