# Kibana “visualization control” not working for String Field

**URL:** <https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612>\
**Category:** Kibana\
**Created:** [April 12, 2019, 11:41am UTC](https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612 "2019-04-12T11:41:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![igour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igour/32/38679_2.png) [@igour](https://discuss.elastic.co/u/igour)\
**Post date:** [April 12, 2019, 11:41am UTC](https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612/1 "2019-04-12T11:41:07Z")

</div>

I have one field named(ID), which in index pattern set as String(even i check with default value type as well).

But when I used "Options list" control visualization for the same field to do the filter, i am not getting the whole value in drop down.

Example: ID is having values as EE-RR-123, EE-RR-234, EE-RR-444.

As mentioned above, after implementing the control visualization, drop down is only showing values

```auto
ee
rr
123
234
444

```

I am not getting why it is happening, i setted that filed value as String only, then this whole field should come as "EE-RR-444" right.

> Also we I can see from discover and dev-tools, field is coming as whole sting only(like "EE-RR-444").

Can some one please help. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 12, 2019, 12:46pm UTC](https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612/2 "2019-04-12T12:46:00Z")

</div>

Depending on the version you're using, you should have a field ID.keyword. That is the one that isn't analyzed so it should have the full ID in it. If you don't have it, you'll have to change the type to keyword on ingest instead of text.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html)

---

<div class="post-metadata">

**Author:** ![igour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igour/32/38679_2.png) [@igour](https://discuss.elastic.co/u/igour)\
**Post date:** [April 12, 2019, 5:08pm UTC](https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612/3 "2019-04-12T17:08:35Z")

</div>

my current version is 6.2

---

<div class="post-metadata">

**Author:** ![Marius\_Dragomir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marius_dragomir/32/42087_2.png) [@Marius\_Dragomir](https://discuss.elastic.co/u/Marius_Dragomir)\
**Post date:** [April 16, 2019, 11:42am UTC](https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612/4 "2019-04-16T11:42:31Z")

</div>

It should have ID.keyword. use that one.

---

<div class="post-metadata">

**Author:** ![igour](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igour/32/38679_2.png) [@igour](https://discuss.elastic.co/u/igour)\
**Post date:** [April 20, 2019, 6:12am UTC](https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612/5 "2019-04-20T06:12:18Z")

</div>

> [@Marius\_Dragomir](#):
>
> Depending on the version you're using, you should have a field ID.keyword. That is the one that isn't analyzed so it should have the full ID in it. If you don't have it, you'll have to change the type to keyword on ingest instead of text.

Yes you are right, Earlier my field type was just text, I updated my mapping to field type to keyword and then ID.keyword is coming for new index. Also i did re-index the older indices so that same have to apply for the rest of the indcies as well.

Thanks for your input.

---

<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 18, 2019, 6:12am UTC](https://discuss.elastic.co/t/kibana-visualization-control-not-working-for-string-field/176612/6 "2019-05-18T06:12:19Z")

</div>

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