# Statistical Date Histogram Facet?

**URL:** <https://discuss.elastic.co/t/statistical-date-histogram-facet/14803>\
**Category:** Elasticsearch\
**Created:** [December 11, 2013, 1:33am UTC](https://discuss.elastic.co/t/statistical-date-histogram-facet/14803 "2013-12-11T01:33:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [December 11, 2013, 1:33am UTC](https://discuss.elastic.co/t/statistical-date-histogram-facet/14803/1 "2013-12-11T01:33:19Z")

</div>

The date histogram facet is very useful, but does not collect variances or  
standard deviations, only averages.

Seems simple enough to add (see e.g. the statistical facet, though should  
probably use [http://www.johndcook.com/standard\_deviation.html](http://www.johndcook.com/standard_deviation.html) instead); I'm  
just not sure if the best approach is to create yet another facet plugin,  
or add this to the existing facet and create a pull request?

--  
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/24f15ec5-fa48-4bce-bf48-eda3304fea90%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/24f15ec5-fa48-4bce-bf48-eda3304fea90%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 11, 2013, 8:28am UTC](https://discuss.elastic.co/t/statistical-date-histogram-facet/14803/2 "2013-12-11T08:28:08Z")

</div>

Hey,

if you need this is as a facet, it makes sense to write your own plugin.  
But maybe this is already supported by aggregations, coming in 1.0 (and  
already included in the current 1.0 beta release). Might make sense to take  
a look there first, before starting to write your facet code. See

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--Alex

On Wed, Dec 11, 2013 at 2:33 AM, Eric Jain [eric.jain@gmail.com](mailto:eric.jain@gmail.com) wrote:

> The date histogram facet is very useful, but does not collect variances or  
> standard deviations, only averages.
> 
> Seems simple enough to add (see e.g. the statistical facet, though should  
> probably use [Accurately computing sample variance online](http://www.johndcook.com/standard_deviation.html) instead);  
> I'm just not sure if the best approach is to create yet another facet  
> plugin, or add this to the existing facet and create a pull request?
> 
> --  
> 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/24f15ec5-fa48-4bce-bf48-eda3304fea90%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/24f15ec5-fa48-4bce-bf48-eda3304fea90%40googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CAGCwEM\_cth95Y%3D4F6CU-44%2BVAp17Tog7nLKWq4r93TO972UyKA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_cth95Y%3D4F6CU-44%2BVAp17Tog7nLKWq4r93TO972UyKA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [December 12, 2013, 2:21am UTC](https://discuss.elastic.co/t/statistical-date-histogram-facet/14803/3 "2013-12-12T02:21:16Z")

</div>

On Wed, Dec 11, 2013 at 12:28 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de) wrote:

> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations.html)

Thanks for the pointer; looks like I should hold off creating new  
facets until the aggregation stuff is finalized.

--  
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/CAHte5%2BJyxRe7syqUT0TQqM3ycSqn%3DCe6VRE6iDxFGJNmg3DZzw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHte5%2BJyxRe7syqUT0TQqM3ycSqn%3DCe6VRE6iDxFGJNmg3DZzw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![vaidik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vaidik/32/1134_2.png) [@vaidik](https://discuss.elastic.co/u/vaidik)\
**Post date:** [December 12, 2013, 2:56am UTC](https://discuss.elastic.co/t/statistical-date-histogram-facet/14803/4 "2013-12-12T02:56:49Z")

</div>

But you can try it in the new beta if you like. To my knowledge, the  
feature is not complete yet and must be going through bug fixing but it  
will give you a fare idea about how useful will this be for your use-case.  
On Dec 12, 2013 7:51 AM, "Eric Jain" [eric.jain@gmail.com](mailto:eric.jain@gmail.com) wrote:

> On Wed, Dec 11, 2013 at 12:28 AM, Alexander Reelsen [alr@spinscale.de](mailto:alr@spinscale.de)  
> wrote:
> 
> > 
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations.html)
> 
> Thanks for the pointer; looks like I should hold off creating new  
> facets until the aggregation stuff is finalized.
> 
> --  
> 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/CAHte5%2BJyxRe7syqUT0TQqM3ycSqn%3DCe6VRE6iDxFGJNmg3DZzw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHte5%2BJyxRe7syqUT0TQqM3ycSqn%3DCe6VRE6iDxFGJNmg3DZzw%40mail.gmail.com)  
> .  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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/CACWtv5mmEmtPMJrK1R%3D7T6mVyyyXpTLrpT35YCV1Na0sXORoyg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CACWtv5mmEmtPMJrK1R%3D7T6mVyyyXpTLrpT35YCV1Na0sXORoyg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:01am UTC](https://discuss.elastic.co/t/statistical-date-histogram-facet/14803/5 "2017-07-06T02:01:49Z")

</div>


