# Date histogram doesn't contain value field in ES version:1.4.2

**URL:** <https://discuss.elastic.co/t/date-histogram-doesnt-contain-value-field-in-es-version-1-4-2/21422>\
**Category:** Elasticsearch\
**Created:** [December 29, 2014, 12:06pm UTC](https://discuss.elastic.co/t/date-histogram-doesnt-contain-value-field-in-es-version-1-4-2/21422 "2014-12-29T12:06:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yatish\_Teddla\_2](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@Yatish\_Teddla\_2](https://discuss.elastic.co/u/Yatish_Teddla_2)\
**Post date:** [December 29, 2014, 12:06pm UTC](https://discuss.elastic.co/t/date-histogram-doesnt-contain-value-field-in-es-version-1-4-2/21422/1 "2014-12-29T12:06:37Z")

</div>

Hi Admin.  
Currently iam working on ES version 1.0.1 . In the date histogram facets  
supports "value\_field" that helps to do bucketing on a different key. Now  
we are planning to upgrade ES version to 1.4.2, but in that date histogram  
facets i didn't find any documentation regarding this "value\_field".  
I need date bucketing with a different key.

Can you please help me to find the documentation for this or am i missing  
any thing?

Ref urls:  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-date-histogram-facet.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-date-histogram-facet.html)  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html)

Any help is much appreciated!

Thanks,  
Yatish.

--  
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/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%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:** [December 29, 2014, 1:39pm UTC](https://discuss.elastic.co/t/date-histogram-doesnt-contain-value-field-in-es-version-1-4-2/21422/2 "2014-12-29T13:39:20Z")

</div>

Hi,

Aggregations don't support `value_field` and require to use a  
sub-aggregation instead. This might be useful:

> **[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.

On Mon, Dec 29, 2014 at 1:06 PM, Yatish Teddla [yatish@headrun.com](mailto:yatish@headrun.com) wrote:

> Hi Admin.  
> Currently iam working on ES version 1.0.1 . In the date histogram facets  
> supports "value\_field" that helps to do bucketing on a different key. Now  
> we are planning to upgrade ES version to 1.4.2, but in that date histogram  
> facets i didn't find any documentation regarding this "value\_field".  
> I need date bucketing with a different key.
> 
> Can you please help me to find the documentation for this or am i missing  
> any thing?
> 
> Ref urls:
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-date-histogram-facet.html)
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html)
> 
> Any help is much appreciated!
> 
> Thanks,  
> Yatish.
> 
> --  
> 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/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%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/CAL6Z4j5a%2B7tyiEJMd24N\_Ovf7YNWPRMLDSAE8NU%2BD%3D92ss7gfQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j5a%2B7tyiEJMd24N_Ovf7YNWPRMLDSAE8NU%2BD%3D92ss7gfQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Yatish\_Teddla\_2](https://avatars.discourse-cdn.com/v4/letter/y/49beb7/32.png) [@Yatish\_Teddla\_2](https://discuss.elastic.co/u/Yatish_Teddla_2)\
**Post date:** [December 29, 2014, 1:55pm UTC](https://discuss.elastic.co/t/date-histogram-doesnt-contain-value-field-in-es-version-1-4-2/21422/3 "2014-12-29T13:55:12Z")

</div>

Got in Adrien, Thanks.

On Monday, 29 December 2014 19:09:30 UTC+5:30, Adrien Grand wrote:

> Hi,
> 
> Aggregations don't support `value_field` and require to use a  
> sub-aggregation instead. This might be useful:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-migrating-to-aggs.html#_value_field_2)
> 
> On Mon, Dec 29, 2014 at 1:06 PM, Yatish Teddla \<[yat...@headrun.com](mailto:yat...@headrun.com)  
> \<javascript:\>\> wrote:
> 
> > Hi Admin.  
> > Currently iam working on ES version 1.0.1 . In the date histogram facets  
> > supports "value\_field" that helps to do bucketing on a different key. Now  
> > we are planning to upgrade ES version to 1.4.2, but in that date histogram  
> > facets i didn't find any documentation regarding this "value\_field".  
> > I need date bucketing with a different key.
> > 
> > Can you please help me to find the documentation for this or am i missing  
> > any thing?
> > 
> > Ref urls:
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-facets-date-histogram-facet.html)
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html)
> > 
> > Any help is much appreciated!
> > 
> > Thanks,  
> > Yatish.
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/964d0c2a-809e-4dd9-bfde-be8298a9e8f8%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/812794b7-547e-4beb-9099-fd9db73d9358%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/812794b7-547e-4beb-9099-fd9db73d9358%40googlegroups.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, 12:41am UTC](https://discuss.elastic.co/t/date-histogram-doesnt-contain-value-field-in-es-version-1-4-2/21422/4 "2017-07-06T00:41:35Z")

</div>


