Range of results

i want more than 10 results on this result, how can I do this?
This is the code:

GET /imsva_message/_search 
{ 
"size": 0,
"aggs" : {
  "aggdata" : {
    "filter": { 
      "range": {
        "data1": {
          "from": "now-15m",
          "to": "now"
        }
      }
    },
    "aggs" : {
      "aggremetente" : { 
        "terms" : { 
          "field" : "remetente.keyword",
			      "min_doc_count":5  
        }
      }
    } 
  }  
} 
}

and the result:

{
"took" : 20,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : 3195585,
"max_score" : 0.0,
"hits" : [ ]
},
"aggregations" : {
"aggdata" : {
  "doc_count" : 906,
  "aggremetente" : {
    "doc_count_error_upper_bound" : 5,
    "sum_other_doc_count" : 399,
    "buckets" : [
      {
        "key" : "xxxx@xxxx.xxxx.xx",
        "doc_count" : 163
      },
      {
        "key" : "yyyy.yyyyyyyyy@yyyy.yyy.yy",
        "doc_count" : 80
      },
      {
        "key" : "zzzzzzz@zzzz.zzz.zz",
        "doc_count" : 46
      },
      {
        "key" : "xxx.yyyyyyyyyyy@zzz.xxx.yy",
        "doc_count" : 24
      },
      {
        "key" : "xyz.zyx@xyz.yxz.zz",
        "doc_count" : 23
      },
      {
        "key" : "zxz@yyy.xxx.zz",
        "doc_count" : 23
      },
      {
        "key" : "yyyyz.yyyyyy@yxzz.xxy.yyz",
        "doc_count" : 14
      },
      {
        "key" : "zxx.xxxzzyyx@yxzzxyyx.xzx.xx",
        "doc_count" : 10
      },
      {
        "key" : "yxzyxzyyxx@zxzxzxyyy.xzyxzyyyxyx.yyxzz.yy",
        "doc_count" : 9
      },
      {
        "key" : "yxzyyyxzyx.xxxxxxy@xxzzyyx.yxz.yxzy",
        "doc_count" : 6
      }
    ]
  }
}
}
}
GET /imsva_message/_search 
{ 
"size": 0,
"aggs" : {
  "aggdata" : {
    "filter": { 
      "range": {
        "data1": {
          "from": "now-15m",
          "to": "now"
        }
      }
    },
    "aggs" : {
      "aggremetente" : { 
        "terms" : { 
          "field" : "remetente.keyword",
			      "min_doc_count":5,  
           "size" : 20
        }
      }
    } 
  }  
} 
}

Thx David, again kjkjjkjk :laughing:

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