# Incorrect document about an aggregation "value\_count" type?

**URL:** <https://discuss.elastic.co/t/incorrect-document-about-an-aggregation-value-count-type/15531>\
**Category:** Elasticsearch\
**Created:** [January 31, 2014, 3:43pm UTC](https://discuss.elastic.co/t/incorrect-document-about-an-aggregation-value-count-type/15531 "2014-01-31T15:43:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![johtani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/johtani/32/44956_2.png) [@johtani](https://discuss.elastic.co/u/johtani)\
**Post date:** [January 31, 2014, 3:43pm UTC](https://discuss.elastic.co/t/incorrect-document-about-an-aggregation-value-count-type/15531/1 "2014-01-31T15:43:26Z")

</div>

Hi,

When I read the aggregation document, I found typo in the following page.  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations-metrics-valuecount-aggregation.html#\_script\_7](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations-metrics-valuecount-aggregation.html#_script_7)

Description : ”Counting the values generated by a script:

But, I think value\_count does not support script, because I don’t find “script” in ValueCountParser.java

> <https://github.com/elastic/elasticsearch/blob/2df42e4460fa5f0d87363672e305c88d9f30b093/src/main/java/org/elasticsearch/search/aggregations/metrics/valuecount/ValueCountParser.java>

Does it make sense?

* * *

Jun Ohtani  
[johtani@gmail.com](mailto:johtani@gmail.com)  
blog : [http://blog.johtani.info](http://blog.johtani.info)  
twitter : [http://twitter.com/johtani](http://twitter.com/johtani)

---

<div class="post-metadata">

**Author:** ![Boaz\_Leskes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boaz_leskes/32/723_2.png) [@Boaz\_Leskes](https://discuss.elastic.co/u/Boaz_Leskes)\
**Post date:** [February 2, 2014, 8:48am UTC](https://discuss.elastic.co/t/incorrect-document-about-an-aggregation-value-count-type/15531/2 "2014-02-02T08:48:45Z")

</div>

Hi Jun,

It seems you are correct. Please open an issue on this as either the  
documentation needs to be changed or the functionality implemented.

Cheers,  
Boaz

On Friday, January 31, 2014 4:43:26 PM UTC+1, Jun Ohtani wrote:

> Hi,
> 
> When I read the aggregation document, I found typo in the following page.
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-aggregations-metrics-valuecount-aggregation.html#_script_7)
> 
> Description : ”Counting the values generated by a script:
> 
> But, I think value\_count does not support script, because I don’t find  
> “script” in ValueCountParser.java
> 
> [https://github.com/elasticsearch/elasticsearch/blob/2df42e4460fa5f0d87363672e305c88d9f30b093/src/main/java/org/elasticsearch/search/aggregations/metrics/valuecount/ValueCountParser.java#L54](https://github.com/elasticsearch/elasticsearch/blob/2df42e4460fa5f0d87363672e305c88d9f30b093/src/main/java/org/elasticsearch/search/aggregations/metrics/valuecount/ValueCountParser.java#L54)
> 
> Does it make sense?
> 
> * * *
> 
> Jun Ohtani  
> [joh...@gmail.com](mailto:joh...@gmail.com) \<javascript:\>  
> blog : [http://blog.johtani.info](http://blog.johtani.info)  
> twitter : [http://twitter.com/johtani](http://twitter.com/johtani)

--  
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/086d5cbc-7884-4f2f-a564-a83e42b6fe92%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/086d5cbc-7884-4f2f-a564-a83e42b6fe92%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:** ![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:53am UTC](https://discuss.elastic.co/t/incorrect-document-about-an-aggregation-value-count-type/15531/3 "2017-07-06T01:53:24Z")

</div>


