# EsStorage - Set field as not\_analyzed

**URL:** <https://discuss.elastic.co/t/esstorage-set-field-as-not-analyzed/20817>\
**Category:** Elasticsearch\
**Created:** [November 18, 2014, 4:10pm UTC](https://discuss.elastic.co/t/esstorage-set-field-as-not-analyzed/20817 "2014-11-18T16:10:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kingsley\_Elmes](https://avatars.discourse-cdn.com/v4/letter/k/a3d4f5/32.png) [@Kingsley\_Elmes](https://discuss.elastic.co/u/Kingsley_Elmes)\
**Post date:** [November 18, 2014, 4:10pm UTC](https://discuss.elastic.co/t/esstorage-set-field-as-not-analyzed/20817/1 "2014-11-18T16:10:39Z")

</div>

Hi,

Does anyone know is it possible to set a field as 'not\_analyzed' via the  
constructor parameters when using the Pig EsStorage load function?

Or do I have to create create the index and set the mappings prior to  
loading the data using EsStorage.

Thanks,  
Kingsley

--  
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/04207f72-873c-4bd3-a812-72cc7da3d979%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/04207f72-873c-4bd3-a812-72cc7da3d979%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [November 18, 2014, 8:47pm UTC](https://discuss.elastic.co/t/esstorage-set-field-as-not-analyzed/20817/2 "2014-11-18T20:47:01Z")

</div>

You can set up an index template without creating the index. The template  
will only be read when the index is created.

--  
Ivan

On Tue, Nov 18, 2014 at 11:10 AM, Kingsley Elmes [kingsleyelmes@gmail.com](mailto:kingsleyelmes@gmail.com)  
wrote:

> Hi,
> 
> Does anyone know is it possible to set a field as 'not\_analyzed' via the  
> constructor parameters when using the Pig EsStorage load function?
> 
> Or do I have to create create the index and set the mappings prior to  
> loading the data using EsStorage.
> 
> Thanks,  
> Kingsley
> 
> --  
> 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/04207f72-873c-4bd3-a812-72cc7da3d979%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/04207f72-873c-4bd3-a812-72cc7da3d979%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/04207f72-873c-4bd3-a812-72cc7da3d979%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/04207f72-873c-4bd3-a812-72cc7da3d979%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/CALY%3DcQD-rH1x\_Bn52hbUHD1GydP88sVzwBGs5TTrvnJyEYL1uQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQD-rH1x_Bn52hbUHD1GydP88sVzwBGs5TTrvnJyEYL1uQ%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:49am UTC](https://discuss.elastic.co/t/esstorage-set-field-as-not-analyzed/20817/3 "2017-07-06T00:49:09Z")

</div>


