-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Labels
Description
When using the aggregations module I am unable to get aggregated doc counts per index.
The following query DO NOT return the aggregated result per index:
{
"query": {
"match_all": {}
},
"size": 0,
"aggs": {
"type": {
"terms": {
"field": "_index"
}
}
}
}
When I use Facets instead of aggs, I get the desired result:
{
"query": {
"match_all": {}
},
"size": 0,
"facets": {
"type": {
"terms": {
"field": "_index"
}
}
}
}
Is this a known issue?