# Show more than 10 buckets

**URL:** <https://discuss.elastic.co/t/show-more-than-10-buckets/86962>\
**Category:** Elasticsearch\
**Created:** [May 24, 2017, 11:58am UTC](https://discuss.elastic.co/t/show-more-than-10-buckets/86962 "2017-05-24T11:58:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maiko\_Kuipers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maiko_kuipers/32/18104_2.png) [@Maiko\_Kuipers](https://discuss.elastic.co/u/Maiko_Kuipers)\
**Post date:** [May 24, 2017, 11:58am UTC](https://discuss.elastic.co/t/show-more-than-10-buckets/86962/1 "2017-05-24T11:58:44Z")

</div>

I created a query which groups transactions and returns them as buckets. The problem that I'm currently facing is that elasticsearch only returns 10 buckets. How can I make my query return more than 10 buckets?

I posted my code below. I tried to place a size attribute in my groupby but that just gave me an error.  
Thanks in advance

```
GET /ido-laad/_search
{ "query" : {
            "bool" : {
              "must" : [
                 { "term" : {"IsValid" : "true"}},
                 { "range" : {
                  "TimeStamp" : {
                "gte": "2016/12/01",
                "lte": "2016/12/02",
                "format": "yyyy/MM/dd"
            }
         }}
              ],"must_not": [
                
              ]
      }
   },
  "size": 0,
  
  "aggs": {
    "group_by_transaction_id": {
      "terms": {
        "field": "Transaction_ID"
      },
      "aggs": {
        "tot_min": {
          "sum": {
            "field": "DeltaMinutesPreviousRowWithinTransaction"
          }
      }
  
}
},
      "avg_total_minutest": {
           "avg_bucket": {
                "buckets_path": "group_by_transaction_id>tot_min" 
            }
}
}
}
```

---

<div class="post-metadata">

**Author:** ![Heinmci](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@Heinmci](https://discuss.elastic.co/u/Heinmci)\
**Post date:** [May 24, 2017, 12:11pm UTC](https://discuss.elastic.co/t/show-more-than-10-buckets/86962/2 "2017-05-24T12:11:44Z")

</div>

Hi, did you try :

```
 "aggs": {
    "group_by_transaction_id": {
      "terms": {
        "field": "Transaction_ID",
         "size" : 500
      }
```

---

<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:** [June 21, 2017, 12:11pm UTC](https://discuss.elastic.co/t/show-more-than-10-buckets/86962/3 "2017-06-21T12:11:58Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
