Facing issue related to aggregation

Hi,
I am facing issue related to aggregation. I have around 1000 hits, but in console it says I have 0 count

POST /csv/doc/_search?size=0
{
"aggs" : {
"ip_address" : { "value_count" : { "field" : "type" } }
}
}

Response:
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 7006,
"max_score": 0,
"hits":
},
"aggregations": {
** "ip_address": {**
** "value": 0**
}
}
}

image

Response:
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 7006,
"max_score": 0,
"hits": []
},
"aggregations": {
"ip_address": {
"value": 0
}
}
}

Normal basic calculation is not happening :frowning: Why is the value still zero?
Can anyone help me out

Figured out. Thanks

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