Join GitHub today
Unable to aggregate on _index #5848
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:
When I use Facets instead of aggs, I get the desired result:
Is this a known issue?
@clintongormley Facets indeed have special handling for this field.
I think we can have a cleaner fix for this, eg. by making field mappers responsible for producing field data, so that a field which is neither indexed nor doc-valued but knows what its field data looks like could return a non-empty instance. I need to think more about this...