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.