How do you perform an ElasticSearch aggregation for a specific type? I realize that you can specify the index and/or type in the request Url, but I want to perform aggregations on two distinct types.
Thank you!
How do you perform an ElasticSearch aggregation for a specific type? I realize that you can specify the index and/or type in the request Url, but I want to perform aggregations on two distinct types.
Thank you!
If you can aggregate by an field in all types:
You could filter the aggregation by type, and then use sub-aggregations. For example: