# Multi index aggregations

**URL:** <https://discuss.elastic.co/t/multi-index-aggregations/302012>\
**Category:** Elasticsearch\
**Created:** [April 9, 2022, 4:41am UTC](https://discuss.elastic.co/t/multi-index-aggregations/302012 "2022-04-09T04:41:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RabBit\_BR](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rabbit_br/32/82261_2.png) [@RabBit\_BR](https://discuss.elastic.co/u/RabBit_BR)\
**Post date:** [April 9, 2022, 1:20pm UTC](https://discuss.elastic.co/t/multi-index-aggregations/302012/2 "2022-04-09T13:20:32Z")

</div>

I don't know if this is exactly your problem but it's the same context.

> [@Aggregation across multiple indices](https://discuss.elastic.co/t/aggregation-across-multiple-indices/271350):
>
> I have 2 indices and they store data of the same mappings on different dates - t1 and t2. I have a multi term aggregation below which works on a single index. How can I get elasticsearch to return the same aggregation across t1 and t2 as well as do some comparison like t1.total-price - t2.total-price? PUT t1/\_mappings/ { "properties": { "account": { "type": "text", "fields": { "keyword": { "type": "keyword", "ign…

---

_[View the full topic](https://discuss.elastic.co/t/multi-index-aggregations/302012)._
