# Can ES compute result of aggregation's result

**URL:** <https://discuss.elastic.co/t/can-es-compute-result-of-aggregations-result/16922>\
**Category:** Elasticsearch\
**Created:** [April 10, 2014, 1:04pm UTC](https://discuss.elastic.co/t/can-es-compute-result-of-aggregations-result/16922 "2014-04-10T13:04:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11141](https://avatars.discourse-cdn.com/v4/letter/1/e19adc/32.png) [@11141](https://discuss.elastic.co/u/11141)\
**Post date:** [April 10, 2014, 1:04pm UTC](https://discuss.elastic.co/t/can-es-compute-result-of-aggregations-result/16922/1 "2014-04-10T13:04:18Z")

</div>

Hi all

I have two sum when aggregation over, for example `click total num` and  
`search total num`. Is there some operator that can give me a num which is  
`click total num`/`search total num`?

Thanks

Zhao Chun

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 10, 2014, 11:29pm UTC](https://discuss.elastic.co/t/can-es-compute-result-of-aggregations-result/16922/2 "2014-04-10T23:29:46Z")

</div>

Hi,

Unfortunately, this is not possible. But maybe you could do it on client  
side?

On Thu, Apr 10, 2014 at 3:04 PM, Zhao Chun [buaa.zhaoc@gmail.com](mailto:buaa.zhaoc@gmail.com) wrote:

> Hi all
> 
> I have two sum when aggregation over, for example `click total num` and  
> `search total num`. Is there some operator that can give me a num which is  
> `click total num`/`search total num`?
> 
> Thanks
> 
> Zhao Chun
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6YUtk\_dj2dyBYnsJWR7e6PEdpAzRqT%2B%3DEtfNsB9s0Kdg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6YUtk_dj2dyBYnsJWR7e6PEdpAzRqT%2B%3DEtfNsB9s0Kdg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![11141](https://avatars.discourse-cdn.com/v4/letter/1/e19adc/32.png) [@11141](https://discuss.elastic.co/u/11141)\
**Post date:** [April 11, 2014, 12:14am UTC](https://discuss.elastic.co/t/can-es-compute-result-of-aggregations-result/16922/3 "2014-04-11T00:14:54Z")

</div>

Thanks for your reply, I will do it on client side.

在 2014年4月11日，上午7:29，Adrien Grand [adrien.grand@elasticsearch.com](mailto:adrien.grand@elasticsearch.com) 写道：

> Hi,
> 
> Unfortunately, this is not possible. But maybe you could do it on client side?
> 
> On Thu, Apr 10, 2014 at 3:04 PM, Zhao Chun [buaa.zhaoc@gmail.com](mailto:buaa.zhaoc@gmail.com) wrote:  
> Hi all
> 
> I have two sum when aggregation over, for example `click total num` and `search total num`. Is there some operator that can give me a num which is `click total num`/`search total num`?
> 
> Thanks
> 
> Zhao Chun
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b12a786d-37c1-4b30-9684-c75a94c8c7f7%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Adrien Grand
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/kVNpBkz8Kfg/unsubscribe](https://groups.google.com/d/topic/elasticsearch/kVNpBkz8Kfg/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6YUtk\_dj2dyBYnsJWR7e6PEdpAzRqT%2B%3DEtfNsB9s0Kdg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6YUtk_dj2dyBYnsJWR7e6PEdpAzRqT%2B%3DEtfNsB9s0Kdg%40mail.gmail.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0721AD63-1058-4527-90C3-D2D1FE1F5A88%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/0721AD63-1058-4527-90C3-D2D1FE1F5A88%40gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:36am UTC](https://discuss.elastic.co/t/can-es-compute-result-of-aggregations-result/16922/4 "2017-07-06T01:36:41Z")

</div>


