# Define a global default type for a string

**URL:** <https://discuss.elastic.co/t/define-a-global-default-type-for-a-string/262281>\
**Category:** Elasticsearch\
**Created:** [January 26, 2021, 8:56pm UTC](https://discuss.elastic.co/t/define-a-global-default-type-for-a-string/262281 "2021-01-26T20:56:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liorg2](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@liorg2](https://discuss.elastic.co/u/liorg2)\
**Post date:** [January 26, 2021, 8:56pm UTC](https://discuss.elastic.co/t/define-a-global-default-type-for-a-string/262281/1 "2021-01-26T20:56:52Z")

</div>

Hello,  
Can I ask elasticsearch to treat incoming strings as keyword , for any future created index without a matched template?

Something like global template

Thanks

---

<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:** [February 23, 2021, 8:56pm UTC](https://discuss.elastic.co/t/define-a-global-default-type-for-a-string/262281/2 "2021-02-23T20:56:58Z")

</div>

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