# Why my elasticsearch showing different counts for field and field.keyword?

**URL:** <https://discuss.elastic.co/t/why-my-elasticsearch-showing-different-counts-for-field-and-field-keyword/77973>\
**Category:** Elasticsearch\
**Created:** [March 9, 2017, 11:54am UTC](https://discuss.elastic.co/t/why-my-elasticsearch-showing-different-counts-for-field-and-field-keyword/77973 "2017-03-09T11:54:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [March 9, 2017, 11:54am UTC](https://discuss.elastic.co/t/why-my-elasticsearch-showing-different-counts-for-field-and-field-keyword/77973/1 "2017-03-09T11:54:40Z")

</div>

Hi,

I am using Elasticsearch GA 5.0.0.

My log file has a field called `serverName`. It has servers `server_a`, `server_b`, and `server_c`. This is the situation. I pick one specific date from the date picker. From the side panel, when I click the servers term, it expands and shows me `server_a`, `server_b`, and `server_c`. When I click / positive filter `server_a`, I can see there are 100 entries. I then went to visualization and created a Data Table, with metric as `Count` and then `buckets`\>`Split Rows`\>`Aggregation`\>`Terms`. In field, I select `Terms` and then picks `serverName` from it. When I run it , I get a yellow banner on top saying;

```
Courier Fetch: 25 of 70 shards failed.

```

In the table it shows 75 entries for `server_a`. Then I selected `serverName.keyword` and run it. Now the yellow banner is gone and 75 changed to 25.

75+25=100.

What I understood is that some of my entries have `serverName.keyword`, and some have `serverName`. I am expecting a table entry showing 100 for `server_a`. Why is this happening and how can I fix this?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![elasticheart](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticheart/32/65189_2.png) [@elasticheart](https://discuss.elastic.co/u/elasticheart)\
**Post date:** [March 9, 2017, 9:40pm UTC](https://discuss.elastic.co/t/why-my-elasticsearch-showing-different-counts-for-field-and-field-keyword/77973/2 "2017-03-09T21:40:15Z")

</div>

Still I am unable to resolve and fix this. Is this an issue with Elasticsearch or Kibana?

---

<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:** [April 6, 2017, 9:40pm UTC](https://discuss.elastic.co/t/why-my-elasticsearch-showing-different-counts-for-field-and-field-keyword/77973/3 "2017-04-06T21:40:38Z")

</div>

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