# Aggregate some data is not shown

**URL:** https://discuss.elastic.co/t/aggregate-some-data-is-not-shown/98872
**Category:** Elasticsearch
**Created:** [August 30, 2017, 2:50pm UTC](https://discuss.elastic.co/t/aggregate-some-data-is-not-shown/98872 "2017-08-30T14:50:05Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![linweijun](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@linweijun](https://discuss.elastic.co/u/linweijun)
#### Post date: [August 30, 2017, 2:50pm UTC](https://discuss.elastic.co/t/aggregate-some-data-is-not-shown/98872/1 "2017-08-30T14:50:05Z")

</div>

I have some data：  
"geo": {"city": "", "area": "", "country": "Taiwan", "longitude": 121.0, "latitude": 23.5, "iso\_code": "TW"}，  
"geo": {"city": "", "area": "", "country": "Taiwan", "longitude": 121.0, "latitude": 23.5, "iso\_code": "TW"},  
"geo": {"city": "Taipei", "area": "", "country": "Taiwan", "longitude": 121.0, "latitude": 23.5, "iso\_code": "TW"},  
"geo": {"city": "Wan-hua", "area": "", "country": "Taiwan", "longitude": 121.0, "latitude": 23.5, "iso\_code": "TW"},  
"geo": {"city": "Chang-hua", "area": "", "country": "Taiwan", "longitude": 121.0, "latitude": 23.5, "iso\_code": "TW"},

i Aggregate：  
{"aggs":{  
"city\_count":{  
"field":"geo.city.keyword"  
}}  
}

The results are not shown ：Chang-hua！  
why  
How can we show all?

---

<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: [August 31, 2017, 8:23am UTC](https://discuss.elastic.co/t/aggregate-some-data-is-not-shown/98872/2 "2017-08-31T08:23:22Z")

</div>

can you please provide a full reproduction. This contains the Elasticsearch version used, the JVM version used, sample documents to index, your mapping, and also a valid sample query. Your aggregation is not valid, it is missing the type. This also means you should provide either curl calls or console compatible statements for an easy reproduction.

Please invest some more time, to make it easier for other to follow your issue and help to solve it!

Thank you!

---

<div class="post-metadata">

### Author: ![linweijun](https://avatars.discourse-cdn.com/v4/letter/l/439d5e/32.png) [@linweijun](https://discuss.elastic.co/u/linweijun)
#### Post date: [September 9, 2017, 6:49am UTC](https://discuss.elastic.co/t/aggregate-some-data-is-not-shown/98872/3 "2017-09-09T06:49:07Z")

</div>

Sorry, it's my fault

---

<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: [October 7, 2017, 6:49am UTC](https://discuss.elastic.co/t/aggregate-some-data-is-not-shown/98872/4 "2017-10-07T06:49:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
