# Statistical calculations in TermStatsFacet

**URL:** <https://discuss.elastic.co/t/statistical-calculations-in-termstatsfacet/5932>\
**Category:** Elasticsearch\
**Created:** [November 21, 2011, 9:48pm UTC](https://discuss.elastic.co/t/statistical-calculations-in-termstatsfacet/5932 "2011-11-21T21:48:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discuss.elastic.co/u/Rahul_Sharma)\
**Post date:** [November 21, 2011, 9:48pm UTC](https://discuss.elastic.co/t/statistical-calculations-in-termstatsfacet/5932/1 "2011-11-21T21:48:44Z")

</div>

Hi,

From api it is evident that we can get statistical calculations like  
Standard Deviation, Variance and SumOfSquares using Statistical Facets. But  
same is not possible using TermStatsFacet. Is there any reason for not  
supporting. Is it possible to get it using TermStatsFacet? Any plans to  
support soon?

Thanks  
Rahul

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [November 22, 2011, 12:42pm UTC](https://discuss.elastic.co/t/statistical-calculations-in-termstatsfacet/5932/2 "2011-11-22T12:42:52Z")

</div>

No reason why it can't be supported, open an issue for it.

On Mon, Nov 21, 2011 at 11:48 PM, Rahul Sharma \<[rahul.sharma.coder@gmail.com](mailto:rahul.sharma.coder@gmail.com)

> wrote:

> Hi,
> 
> From api it is evident that we can get statistical calculations like  
> Standard Deviation, Variance and SumOfSquares using Statistical Facets. But  
> same is not possible using TermStatsFacet. Is there any reason for not  
> supporting. Is it possible to get it using TermStatsFacet? Any plans to  
> support soon?
> 
> Thanks  
> Rahul

---

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discuss.elastic.co/u/Rahul_Sharma)\
**Post date:** [November 24, 2011, 7:22pm UTC](https://discuss.elastic.co/t/statistical-calculations-in-termstatsfacet/5932/3 "2011-11-24T19:22:42Z")

</div>

Thanks Shay,  
Here is the feature request -

> <https://github.com/elastic/elasticsearch/issues/1498>
>
> From api it is evident that we can get statistical calculations like Standard De…viation, Variance and SumOfSquares using Statistical Facets. But same is not possible using TermStatsFacet and RangeFacet. Request to enable same support in TermStatsFace as well as RangeFacet.

Thanks  
Rahul

On Tue, Nov 22, 2011 at 6:12 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> No reason why it can't be supported, open an issue for it.
> 
> On Mon, Nov 21, 2011 at 11:48 PM, Rahul Sharma \<  
> [rahul.sharma.coder@gmail.com](mailto:rahul.sharma.coder@gmail.com)\> wrote:
> 
> > Hi,
> > 
> > From api it is evident that we can get statistical calculations like  
> > Standard Deviation, Variance and SumOfSquares using Statistical Facets. But  
> > same is not possible using TermStatsFacet. Is there any reason for not  
> > supporting. Is it possible to get it using TermStatsFacet? Any plans to  
> > support soon?
> > 
> > Thanks  
> > Rahul

---

<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, 3:47am UTC](https://discuss.elastic.co/t/statistical-calculations-in-termstatsfacet/5932/4 "2017-07-06T03:47:30Z")

</div>

Closed on July 6, 2017, 3:47am UTC


