# ES - settings/mappings - globally for an index - "index": "not\_analyzed" and "analyzer":"whitespace" - new feature or not supported

**URL:** <https://discuss.elastic.co/t/es-settings-mappings-globally-for-an-index-index-not-analyzed-and-analyzer-whitespace-new-feature-or-not-supported/22529>\
**Category:** Elasticsearch\
**Created:** [March 5, 2015, 2:39pm UTC](https://discuss.elastic.co/t/es-settings-mappings-globally-for-an-index-index-not-analyzed-and-analyzer-whitespace-new-feature-or-not-supported/22529 "2015-03-05T14:39:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![KaranM](https://avatars.discourse-cdn.com/v4/letter/k/e68b1a/32.png) [@KaranM](https://discuss.elastic.co/u/KaranM)\
**Post date:** [March 5, 2015, 2:39pm UTC](https://discuss.elastic.co/t/es-settings-mappings-globally-for-an-index-index-not-analyzed-and-analyzer-whitespace-new-feature-or-not-supported/22529/1 "2015-03-05T14:39:05Z")

</div>

Hello,  
I want to globally set the following for all current string fields for an  
Index and also for the future(new) string fields on that Index.

Can some some one send example or link that has example, I was researching  
and could not find one.

Thanks. Karan

"index": "not\_analyzed",  
"analyzer":"whitespace"

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f06c14c5-7993-4507-9b89-e393addf949d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f06c14c5-7993-4507-9b89-e393addf949d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 5, 2015, 9:56pm UTC](https://discuss.elastic.co/t/es-settings-mappings-globally-for-an-index-index-not-analyzed-and-analyzer-whitespace-new-feature-or-not-supported/22529/2 "2015-03-05T21:56:07Z")

</div>

You cannot set it globally, you have to do it for each field.

On 6 March 2015 at 01:39, KaranM [karan.muthu@gmail.com](mailto:karan.muthu@gmail.com) wrote:

> Hello,  
> I want to globally set the following for all current string fields for an  
> Index and also for the future(new) string fields on that Index.
> 
> Can some some one send example or link that has example, I was researching  
> and could not find one.
> 
> Thanks. Karan
> 
> "index": "not\_analyzed",  
> "analyzer":"whitespace"
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/f06c14c5-7993-4507-9b89-e393addf949d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f06c14c5-7993-4507-9b89-e393addf949d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/f06c14c5-7993-4507-9b89-e393addf949d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/f06c14c5-7993-4507-9b89-e393addf949d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9B7QgTCFjbBba9wpuU0xaD7aKTXRRpz0\_%2BVzPCmzj0fQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9B7QgTCFjbBba9wpuU0xaD7aKTXRRpz0_%2BVzPCmzj0fQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 9, 2015, 4:14pm UTC](https://discuss.elastic.co/t/es-settings-mappings-globally-for-an-index-index-not-analyzed-and-analyzer-whitespace-new-feature-or-not-supported/22529/3 "2015-03-09T16:14:04Z")

</div>

On Thursday, March 05, 2015 at 22:56 CET,  
Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:

> > On 6 March 2015 at 01:39, KaranM \<[1]karan.muthu@gmail.com\> wrote:
> > 
> > I want to globally set the following for all current string fields  
> > for an Index and also for the future(new) string fields on that  
> > Index.
> > 
> > Can some some one send example or link that has example, I was  
> > researching and could not find one.
> > 
> > "index": "not\_analyzed",Â  
> > "analyzer":"whitespace"
> 
> You cannot set it globally, you have to do it for each field.

Wait, isn't this what dynamic templates are for?

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--  
Magnus Bäck | Software Engineer, Development Tools  
[magnus.back@sonymobile.com](mailto:magnus.back@sonymobile.com) | Sony Mobile Communications

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/20150309161404.GB18116%40seldlx20533.corpusers.net](https://groups.google.com/d/msgid/elasticsearch/20150309161404.GB18116%40seldlx20533.corpusers.net).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 9, 2015, 6:58pm UTC](https://discuss.elastic.co/t/es-settings-mappings-globally-for-an-index-index-not-analyzed-and-analyzer-whitespace-new-feature-or-not-supported/22529/4 "2015-03-09T18:58:19Z")

</div>

True 🙂

On 10 March 2015 at 03:14, Magnus Bäck [magnus.back@sonymobile.com](mailto:magnus.back@sonymobile.com) wrote:

> On Thursday, March 05, 2015 at 22:56 CET,  
> Mark Walkom [markwalkom@gmail.com](mailto:markwalkom@gmail.com) wrote:
> 
> > > On 6 March 2015 at 01:39, KaranM \<[1]karan.muthu@gmail.com\> wrote:
> > > 
> > > I want to globally set the following for all current string fields  
> > > for an Index and also for the future(new) string fields on that  
> > > Index.
> > > 
> > > Can some some one send example or link that has example, I was  
> > > researching and could not find one.
> > > 
> > > "index": "not\_analyzed",Â  
> > > "analyzer":"whitespace"
> > 
> > You cannot set it globally, you have to do it for each field.
> 
> Wait, isn't this what dynamic templates are for?
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/custom-dynamic-mapping.html#dynamic-templates)
> 
> --  
> Magnus Bäck | Software Engineer, Development Tools  
> [magnus.back@sonymobile.com](mailto:magnus.back@sonymobile.com) | Sony Mobile Communications
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/20150309161404.GB18116%40seldlx20533.corpusers.net](https://groups.google.com/d/msgid/elasticsearch/20150309161404.GB18116%40seldlx20533.corpusers.net)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-%3DLDPyZZhjGOx41Zb-7%2BkmA94UxJr\_1znvEGEW0nyziA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-%3DLDPyZZhjGOx41Zb-7%2BkmA94UxJr_1znvEGEW0nyziA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:27am UTC](https://discuss.elastic.co/t/es-settings-mappings-globally-for-an-index-index-not-analyzed-and-analyzer-whitespace-new-feature-or-not-supported/22529/5 "2017-07-06T00:27:44Z")

</div>


