# Fielddata disabled error

**URL:** https://discuss.elastic.co/t/fielddata-disabled-error/195444
**Category:** Kibana
**Tags:** painless
**Created:** [August 16, 2019, 7:19am UTC](https://discuss.elastic.co/t/fielddata-disabled-error/195444 "2019-08-16T07:19:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![smathew](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@smathew](https://discuss.elastic.co/u/smathew)
#### Post date: [August 16, 2019, 7:19am UTC](https://discuss.elastic.co/t/fielddata-disabled-error/195444/1 "2019-08-16T07:19:59Z")

</div>

Hello,

I was trying to create the script field using the following script for simple concatenation ;  
doc['processName'].value + doc['robotName'].value

But I am getting the below error while I go to Discover :  
"Fielddata is disabled on text fields by default. Set fielddata=true on [processName] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."}}}]},"status":500

Could you anyone please guide me if I can fix it within Kibana? if so, how to do it.

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [August 16, 2019, 4:32pm UTC](https://discuss.elastic.co/t/fielddata-disabled-error/195444/2 "2019-08-16T16:32:08Z")

</div>

Hello,

This doc guide should help you.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html)

Thanks,  
Bhavya

---

<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: [September 13, 2019, 4:32pm UTC](https://discuss.elastic.co/t/fielddata-disabled-error/195444/3 "2019-09-13T16:32:25Z")

</div>

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