# Graph - Fielddata is disabled on text fields by default

**URL:** <https://discuss.elastic.co/t/graph-fielddata-is-disabled-on-text-fields-by-default/76250>\
**Category:** Elasticsearch\
**Created:** [February 23, 2017, 3:17pm UTC](https://discuss.elastic.co/t/graph-fielddata-is-disabled-on-text-fields-by-default/76250 "2017-02-23T15:17:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaveJohnson](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@CaveJohnson](https://discuss.elastic.co/u/CaveJohnson)\
**Post date:** [February 23, 2017, 3:17pm UTC](https://discuss.elastic.co/t/graph-fielddata-is-disabled-on-text-fields-by-default/76250/1 "2017-02-23T15:17:44Z")

</div>

New to elasticsearch and still getting to grips with everything!

I've imported a load of nmap xml results in to elastic search using the VulntoES ([https://github.com/ChrisRimondi/VulntoES](https://github.com/ChrisRimondi/VulntoES))

This has worked well and I can see all the data under discover. When I come to visualise a field such as IP with Graph, I get the following error: Fielddata is disabled on text fields by default.

I have searched under in the documentation and see see that I need to add Set fielddata=true on.  
How do I update the data in my index nmap-vuln-to-es ?

EDIT: I am using ELK v5.2 on ubuntu 16

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [February 24, 2017, 10:22pm UTC](https://discuss.elastic.co/t/graph-fielddata-is-disabled-on-text-fields-by-default/76250/2 "2017-02-24T22:22:12Z")

</div>

Hi CaveJohnson,

Have you taken a look at this StackOverflow question which sounds like the same thing? [http://stackoverflow.com/questions/38145991/how-to-set-fielddata-true-in-kibana](http://stackoverflow.com/questions/38145991/how-to-set-fielddata-true-in-kibana)

The docs also has a section on setting fielddata to true: [https://www.elastic.co/guide/en/elasticsearch/reference/5.0/fielddata.html#\_enabling\_fielddata\_on\_literal\_text\_literal\_fields](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/fielddata.html#_enabling_fielddata_on_literal_text_literal_fields)

Please let me know if this helps. Thanks!

CJ

---

<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:** [March 24, 2017, 10:22pm UTC](https://discuss.elastic.co/t/graph-fielddata-is-disabled-on-text-fields-by-default/76250/3 "2017-03-24T22:22:22Z")

</div>

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