How to create custom mapping for the same field

When I put the following JSON to elasticsearch. It get error about nested:
NumberFormatException
{

"id":"eee",
"crosstab":{

"dims":[

{

"id":1
},
{

"id":"asd"
}
]
}
}

I knew dims.id have different type, what should I do to avoid create index
dim.id or create custom mapping.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9cebbf03-09ac-4847-ab72-00c07c472e1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.