# ES 2.1.0 bulk api throws ArrayIndexOutOfBoundsException

**URL:** https://discuss.elastic.co/t/es-2-1-0-bulk-api-throws-arrayindexoutofboundsexception/38743
**Category:** Elasticsearch
**Created:** [January 8, 2016, 3:39pm UTC](https://discuss.elastic.co/t/es-2-1-0-bulk-api-throws-arrayindexoutofboundsexception/38743 "2016-01-08T15:39:43Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![James\_Kelvin](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@James\_Kelvin](https://discuss.elastic.co/u/James_Kelvin)
#### Post date: [January 11, 2016, 1:59am UTC](https://discuss.elastic.co/t/es-2-1-0-bulk-api-throws-arrayindexoutofboundsexception/38743/5 "2016-01-11T01:59:40Z")

</div>

@jprante  
@jasontedor  
Thanks for your advice. Here is the mapping:  
{  
"mgindex0" : {  
"mappings" : {  
"95090eb1-9948-4b21-868a-fc3389b34b6a" : {  
"properties" : {  
"381cbca0-71ba-434e-b624-93d2a732f427" : {  
"type" : "integer"  
},  
"381cbca0-71ba-434e-b624-93d2a732f427|" : {  
"type" : "integer",  
"copy\_to" : ["info"]  
},  
"4c2bc039-0ace-4713-a988-cafd05eff5b9" : {  
"type" : "string"  
},  
"4c2bc039-0ace-4713-a988-cafd05eff5b9|" : {  
"type" : "string",  
"index" : "not\_analyzed",  
"copy\_to" : ["info"]  
},  
"808ff715-f215-4300-bc47-6d29c53a1945" : {  
"type" : "double"  
},  
"808ff715-f215-4300-bc47-6d29c53a1945|" : {  
"type" : "double",  
"copy\_to" : ["info"]  
},  
"confidence" : {  
"type" : "integer"  
},  
"createdby" : {  
"type" : "integer"  
},  
"createdon" : {  
"type" : "date",  
"format" : "strict\_date\_optional\_time||epoch\_millis"  
},  
"datasource" : {  
"type" : "string",  
"index" : "not\_analyzed"  
},  
"e8238304-703f-4d89-b543-af994886393f" : {  
"type" : "string"  
},  
"e8238304-703f-4d89-b543-af994886393f|" : {  
"type" : "string",  
"index" : "not\_analyzed",  
"copy\_to" : ["info"]  
},  
"ea312e4e-48b8-4c5a-87c6-59d7fe0d9970" : {  
"type" : "string"  
},  
"ea312e4e-48b8-4c5a-87c6-59d7fe0d9970|" : {  
"type" : "string",  
"index" : "not\_analyzed",  
"copy\_to" : ["info"]  
},  
"etime" : {  
"type" : "date",  
"format" : "strict\_date\_optional\_time||epoch\_millis"  
},  
"info" : {  
"type" : "string",  
"index" : "not\_analyzed"  
},  
"label" : {  
"type" : "string",  
"copy\_to" : ["info"]  
},  
"location" : {  
"type" : "geo\_point",  
"fielddata" : {  
"format" : "compressed",  
"precision" : "1cm"  
}  
},  
"mugshot" : {  
"type" : "string",  
"index" : "not\_analyzed"  
},  
"stime" : {  
"type" : "date",  
"format" : "strict\_date\_optional\_time||epoch\_millis"  
}  
}  
}  
}  
}  
}

1: field name is UUID  
(1) raw uuid is for analyzed field.  
(2) uuid + "|" for not analyzed field.  
we did not use multi-field, but i think it does not matter.  
2: all analyzed field copy to "info" field  
our app need "info" field for special query.

---

_[View the full topic](https://discuss.elastic.co/t/es-2-1-0-bulk-api-throws-arrayindexoutofboundsexception/38743)._
