# Field with various types

**URL:** <https://discuss.elastic.co/t/field-with-various-types/20734>\
**Category:** Elasticsearch\
**Created:** [November 13, 2014, 7:15pm UTC](https://discuss.elastic.co/t/field-with-various-types/20734 "2014-11-13T19:15:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![CB1](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@CB1](https://discuss.elastic.co/u/CB1)\
**Post date:** [November 13, 2014, 7:15pm UTC](https://discuss.elastic.co/t/field-with-various-types/20734/1 "2014-11-13T19:15:59Z")

</div>

i have been struggling with the auto mapping / template mappings in order  
to overcome the following issue:

i have a field that can have a string value or an object value  
(non-structured). this multi typed field creates mapping exceptions causing  
the document to be rejected by the indexer.

questions:

- how can i tell ES to not index specific fields (skip them altogether:  
"person.field1" =\> skipped!! (I want person to be parsed - except  
person.field1)

- is it possible to configure ES mapper so that it accepts person.field1  
with either string OR object...?

- in general, if i'm dealing with unstructured json docs, can ES make sense  
here OR is it a stricted type system?

any help is appreciated!!

--  
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/ac679e9c-6f2f-4aa5-8f6f-f0855f5ffb96%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ac679e9c-6f2f-4aa5-8f6f-f0855f5ffb96%40googlegroups.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:50am UTC](https://discuss.elastic.co/t/field-with-various-types/20734/2 "2017-07-06T00:50:08Z")

</div>


