# Set Filed data true By default for all fields of a mapping

**URL:** <https://discuss.elastic.co/t/set-filed-data-true-by-default-for-all-fields-of-a-mapping/125156>\
**Category:** Elasticsearch\
**Created:** [March 22, 2018, 9:50am UTC](https://discuss.elastic.co/t/set-filed-data-true-by-default-for-all-fields-of-a-mapping/125156 "2018-03-22T09:50:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 22, 2018, 11:01am UTC](https://discuss.elastic.co/t/set-filed-data-true-by-default-for-all-fields-of-a-mapping/125156/4 "2018-03-22T11:01:13Z")

</div>

What is in your `SPT-twist` field?  
What are you doing with this field? Aggs? Sorting? Searching?

I can totally answer to your question but I don't want to "just answer".  
I prefer giving you the best practice with elasticsearch.

So if you can share a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are exactly doing. Please, try to keep the example as simple as possible.

Then I'll be able to give you a real advice and not just a technical answer.

---

_[View the full topic](https://discuss.elastic.co/t/set-filed-data-true-by-default-for-all-fields-of-a-mapping/125156)._
