Getting grouped result collectly

I have cardinality result 122, but group_by 0 which supposed to group by same 'global_fdid'
returns only 9 result. I'm expecting 122 result. How can I get entire result?

  "visit_count" : {
      "cardinality" : {
          "field" : "global_fdid"
      }
  },
 "group_by_0: {
        "terms": {
          "field": "global_fdid"
        },
       "aggs" : {
           "timestamp" : { 
              "max" : { 
              "field" : "start_time" 
             }
        }
 }

Hi Yuri,
Set the size parameter on the terms agg to control how many buckets you need back.
A value in the hundreds is manageable.

Thank you! it worked.

1 Like

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