# Is there any funtionality in Elastic Search using which we can perform mathematical operations or calculations on the entries in an index?

**URL:** https://discuss.elastic.co/t/is-there-any-funtionality-in-elastic-search-using-which-we-can-perform-mathematical-operations-or-calculations-on-the-entries-in-an-index/320741
**Category:** Elasticsearch
**Created:** [December 8, 2022, 5:50am UTC](https://discuss.elastic.co/t/is-there-any-funtionality-in-elastic-search-using-which-we-can-perform-mathematical-operations-or-calculations-on-the-entries-in-an-index/320741 "2022-12-08T05:50:42Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Shraddha29](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@Shraddha29](https://discuss.elastic.co/u/Shraddha29)
#### Post date: [December 8, 2022, 5:50am UTC](https://discuss.elastic.co/t/is-there-any-funtionality-in-elastic-search-using-which-we-can-perform-mathematical-operations-or-calculations-on-the-entries-in-an-index/320741/1 "2022-12-08T05:50:42Z")

</div>

Is there any functionality in Elastic Search using which we can perform mathematical operations or calculations on the entries in an index?

---

<div class="post-metadata">

### Author: ![dadiasish](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadiasish/32/114221_2.png) [@dadiasish](https://discuss.elastic.co/u/dadiasish)
#### Post date: [December 8, 2022, 5:55am UTC](https://discuss.elastic.co/t/is-there-any-funtionality-in-elastic-search-using-which-we-can-perform-mathematical-operations-or-calculations-on-the-entries-in-an-index/320741/2 "2022-12-08T05:55:59Z")

</div>

Yes, there is a concept of aggregations, where metric aggregations will have the min, sum, percentage, etc which might help you.

> **[Metrics aggregations | Elasticsearch Guide \[8.5\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics.html)**

The below URL will have all the details, if you go into it.

Also, alternatively, you can use painless scripting as well if you want to perform and operations on your data.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 5, 2023, 5:56am UTC](https://discuss.elastic.co/t/is-there-any-funtionality-in-elastic-search-using-which-we-can-perform-mathematical-operations-or-calculations-on-the-entries-in-an-index/320741/3 "2023-01-05T05:56:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
