# MapperParsingException - Array

**URL:** <https://discuss.elastic.co/t/mapperparsingexception-array/25277>\
**Category:** Elasticsearch\
**Created:** [July 10, 2015, 2:54am UTC](https://discuss.elastic.co/t/mapperparsingexception-array/25277 "2015-07-10T02:54:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![travagini](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@travagini](https://discuss.elastic.co/u/travagini)\
**Post date:** [July 10, 2015, 2:54am UTC](https://discuss.elastic.co/t/mapperparsingexception-array/25277/1 "2015-07-10T02:54:37Z")

</div>

How can I put a Nested type on my Mapping where a field has different types? Let me show you my nested:

```
{
    "array": [
    		{	
    			"name": "Date One",
    			"value": "2015-07-09"
    		},
    		{	
    			"name": "Date Two",
    			"value": "2017-07-09"
    		},
    		{	
    			"name": "Client",
    			"value": "John Smith"
    		},
    		{	
    			"name": "Contract",
    			"value": 1500.25
    		}
    	]
}

```

array.value can be a date, string or double type, is there a way of mapping my array.value to these 3 different types?

---

<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:** [July 10, 2015, 3:00am UTC](https://discuss.elastic.co/t/mapperparsingexception-array/25277/2 "2015-07-10T03:00:10Z")

</div>

Nope, you need to define those as different field names.

---

<div class="post-metadata">

**Author:** ![travagini](https://avatars.discourse-cdn.com/v4/letter/t/9d8465/32.png) [@travagini](https://discuss.elastic.co/u/travagini)\
**Post date:** [July 10, 2015, 3:11am UTC](https://discuss.elastic.co/t/mapperparsingexception-array/25277/3 "2015-07-10T03:11:23Z")

</div>

Even if they are array of objects?

Assuming it is about an array of objects, if I use multi\_field, can I set the different types: string, date and double on Mapping?

Thanks in advance

---

<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:02am UTC](https://discuss.elastic.co/t/mapperparsingexception-array/25277/4 "2017-07-06T00:02:19Z")

</div>


