# Keyword field doesn't show as type keyword in kibana

**URL:** <https://discuss.elastic.co/t/keyword-field-doesnt-show-as-type-keyword-in-kibana/129535>\
**Category:** Elasticsearch\
**Created:** [April 25, 2018, 4:26pm UTC](https://discuss.elastic.co/t/keyword-field-doesnt-show-as-type-keyword-in-kibana/129535 "2018-04-25T16:26:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David9](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/david9/32/42150_2.png) [@David9](https://discuss.elastic.co/u/David9)\
**Post date:** [April 25, 2018, 4:26pm UTC](https://discuss.elastic.co/t/keyword-field-doesnt-show-as-type-keyword-in-kibana/129535/1 "2018-04-25T16:26:28Z")

</div>

I've created and indexed what I think is a keyword field, however in kibana it shows the field as a 'T' type which I think means 'Text', I was expecting a 'K' for keyword. Can anyone shed light on this?

Edit: my goal in having a keyword field was to be able to do aggregations. after posting this i did a test and the aggregation query worked, which leaves me to believe this is indeed a keyword field, and indeed i should have checked the index info, it tells me the same. If anyone can explain what the 'T' means in Kibana that would be helpful

> PUT keyword\_test  
> { "mappings": {  
> "doc": {  
> "properties": {  
> "foo": {"type": "keyword"}  
> }  
> }  
> }  
> }  
> POST keyword\_test/doc/1  
> {"foo": "hello"}  
> GET keyword\_test/\_search

---

<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:** [May 23, 2018, 4:26pm UTC](https://discuss.elastic.co/t/keyword-field-doesnt-show-as-type-keyword-in-kibana/129535/2 "2018-05-23T16:26:33Z")

</div>

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