# How to set fielddata=true for all the text fields or make the setting default?

**URL:** <https://discuss.elastic.co/t/how-to-set-fielddata-true-for-all-the-text-fields-or-make-the-setting-default/69752>\
**Category:** Kibana\
**Created:** [December 22, 2016, 9:05am UTC](https://discuss.elastic.co/t/how-to-set-fielddata-true-for-all-the-text-fields-or-make-the-setting-default/69752 "2016-12-22T09:05:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gamer](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@Gamer](https://discuss.elastic.co/u/Gamer)\
**Post date:** [December 22, 2016, 9:05am UTC](https://discuss.elastic.co/t/how-to-set-fielddata-true-for-all-the-text-fields-or-make-the-setting-default/69752/1 "2016-12-22T09:05:49Z")

</div>

Hi.

That's the question. I read the manual, other topics, googled it and etc., but all I found was some API Kung Fu and I just don't get how to apply it to my configuration.

I mean, I have the ELK stack + filebeats, all logs are shipped and parsed nicely. Automatically. And there was no need to make any mappings through curl, json-queries and etc.

So I expect there to be some GUI ot at least a 'set via a wildcard' way to make changes in bulk to fields I need.

---

<div class="post-metadata">

**Author:** ![spalger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spalger/32/14092_2.png) [@spalger](https://discuss.elastic.co/u/spalger)\
**Post date:** [December 22, 2016, 5:25pm UTC](https://discuss.elastic.co/t/how-to-set-fielddata-true-for-all-the-text-fields-or-make-the-setting-default/69752/2 "2016-12-22T17:25:22Z")

</div>

Sorry @Gamer, but API Kung Fu is required if you want to use alternate mappings (kibana's console app helps a little).

That said, make sure you are okay with the downsides of having fielddata enabled for all fields. It's off by default in logstash for a reason 🙂

---

<div class="post-metadata">

**Author:** ![Gamer](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@Gamer](https://discuss.elastic.co/u/Gamer)\
**Post date:** [December 23, 2016, 7:43am UTC](https://discuss.elastic.co/t/how-to-set-fielddata-true-for-all-the-text-fields-or-make-the-setting-default/69752/3 "2016-12-23T07:43:04Z")

</div>

Ok then, I'd like to know how to do that using API for all text fields?

---

<div class="post-metadata">

**Author:** ![Gamer](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@Gamer](https://discuss.elastic.co/u/Gamer)\
**Post date:** [December 29, 2016, 4:22pm UTC](https://discuss.elastic.co/t/how-to-set-fielddata-true-for-all-the-text-fields-or-make-the-setting-default/69752/4 "2016-12-29T16:22:12Z")

</div>

I'm sorry for the doubleposting, but does anybody know? I just want to set all the text fields for all the indices in one go.

---

<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:** [January 26, 2017, 4:22pm UTC](https://discuss.elastic.co/t/how-to-set-fielddata-true-for-all-the-text-fields-or-make-the-setting-default/69752/5 "2017-01-26T16:22:46Z")

</div>

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