Dear all,
I am running the following query:
curl -XPOST
"http://localhost:9200/logstash-2014.11.04/logs/_search?search_type=count"
-d '{
"aggs": {
"sessions": {
"terms": {
"field": "sessionId",
"size": 0
},
"aggs": {
"sessions_hits": {
"top_hits": {
"sort": [
{
"@timestamp": {
"order": "desc"
}
}
]
}
}
}
}
}
}'
As I read on multiple resources, setting size to 0 should return all
buckets, however I am still getting 3 buckets per aggregation.
What am I doing wrong here?
Thank you!
Eylül
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/fb54a9a9-405f-43bb-91fc-2f2b90329913%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.