Object mapping for [Type/Collection] with array for [Key/Nestedfield] tried to parse as array, but got EOF, is there a mismatch in types for the same field?

This post has NOT been accepted by the mailing list yet.
I am using mongodb-river with mapper-attachments.

Config->Elasticsearch.yml has edited to

threadpool.bulk.type: fixed
threadpool.bulk.size: 2 # availableProcessors
threadpool.bulk.queue_size: 5000000


While I am defining the meta for particular river got an error like:

failed to execute bulk item (index) index {[index][type][data with nested
array obj]
<......Data.....>
<......Data.....>
org.elasticsearch.index.mapper.MapperParsingException: object mapping for
[TypeName] with array for [Field] tried to parse as array, but got EOF, is
there a mismatch in types for the same field?

at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeNonDynamicArray(ObjectMapper.java:694)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:623)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:492)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:541)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:490)
at
org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:413)
at
org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:435)
at
org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:150)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:511)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


Thanks.

--
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/0e86c5cc-2d1a-44dc-801a-3001e74200de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

What does your document look like?
Any example?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 mars 2015 à 03:47, Kishan Kachchhi log2kishan@gmail.com a écrit :

This post has NOT been accepted by the mailing list yet.
I am using mongodb-river with mapper-attachments.

Config->Elasticsearch.yml has edited to

threadpool.bulk.type: fixed
threadpool.bulk.size: 2 # availableProcessors
threadpool.bulk.queue_size: 5000000


While I am defining the meta for particular river got an error like:

failed to execute bulk item (index) index {[index][type][data with nested array obj]
<......Data.....>
<......Data.....>
org.elasticsearch.index.mapper.MapperParsingException: object mapping for [TypeName] with array for [Field] tried to parse as array, but got EOF, is there a mismatch in types for the same field?

at org.elasticsearch.index.mapper.object.ObjectMapper.serializeNonDynamicArray(ObjectMapper.java:694)
at org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:623)
at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:492)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:541)
at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:490)
at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:413)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:435)
at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:150)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:511)
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


Thanks.

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/0e86c5cc-2d1a-44dc-801a-3001e74200de%40googlegroups.com.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3A7A4A19-C70A-41FD-9418-EF1DB4C6621A%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Hello Sir
My Document is look like below document:

{
"_id" : ObjectId("52e6e6d2dd80f91563000be0"),
"addresses" : [],
"assignTo" : "301a84d16b2a191db9f9ba6df46d540e",
"association" : NumberLong(3),
"bio" : "",
"businessDone" : NumberLong(0),
"businessPipeline" : 0,
"clientId" : "d96621e6c33012d88f97267153d53fd0",
"createdOn" : 1390864029.694,
"creditAmount" : 0,
"customFields" : [],
"customForms" : [],
"debitAmount" : 0,
"documents" : [],
"emails" : [],
"history" : [
{
"historyId" : "04d5e63a81293d3649be6e94050a74d0",
"opType" : NumberLong(0),
"historyTime" : NumberLong(1390864083),
"dataObj" : {
"currValue" : {
"pclsName" : "Bharat Pvt",
"assignToName" : "Bhavin Kakadiya",
"contactType" : "",
"industry" : ""
}
},
"userId" : "301a84d16b2a191db9f9ba6df46d540e",
"userName" : "Bhavin",
"fieldType" : NumberLong(1201),
"historyType" : NumberLong(0)
},
{
"historyId" : "fa7bf4bb5b526dc86e2794cf9d1ec66d",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1390864084),
"dataObj" : {
"currValue" : "Bharat",
"currLinkId" : "c21de2139db546ed5c9453b575ad7afc"
},
"userId" : "301a84d16b2a191db9f9ba6df46d540e",
"userName" : "Bhavin",
"fieldType" : NumberLong(241),
"historyType" : NumberLong(0)
},
{
"historyId" : "2296011e3ecdd702a74435d57fc91beb",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1393402383),
"dataObj" : {
"currValue" : ""
},
"userId" : "301a84d16b2a191db9f9ba6df46d540e",
"userName" : "Bhavin Kakadiya",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "f1acb4bdaa954d49aefa0d644eb40b50",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1393417581),
"dataObj" : {
"currValue" : ""
},
"userId" : "301a84d16b2a191db9f9ba6df46d540e",
"userName" : "Bhavin Kakadiya",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "ad6b96e9fc8835c1a7c1b4150a828d34",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1393417717),
"dataObj" : {
"currValue" : ""
},
"userId" : "301a84d16b2a191db9f9ba6df46d540e",
"userName" : "Bhavin",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "5346ae15810cee695a8b35f2d2106a9f",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1393418430),
"dataObj" : {
"currValue" : ""
},
"userId" : "301a84d16b2a191db9f9ba6df46d540e",
"userName" : "Bhavin",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "4b83c325f468539e9f3180a23fd26ae6",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1395296705),
"dataObj" : {
"currValue" : ""
},
"userId" : "93f9f6e9aa6bf205068c162833ab2bcb",
"userName" : "Milan",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "55e96460df00c5f5764ecea175d51c55",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1395386144),
"dataObj" : {
"currValue" : ""
},
"userId" : "93f9f6e9aa6bf205068c162833ab2bcb",
"userName" : "Milan",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "a383616857a7551e2069dbef2400ff12",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1395747905),
"dataObj" : {
"currValue" : ""
},
"userId" : "93f9f6e9aa6bf205068c162833ab2bcb",
"userName" : "Milan",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "44c80152852035532eac7d29cd7afc90",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1398764347),
"dataObj" : {
"currValue" : ""
},
"userId" : "93f9f6e9aa6bf205068c162833ab2bcb",
"userName" : "Milan",
"fieldType" : NumberLong(1210),
"historyType" : NumberLong(0)
},
{
"historyId" : "602518dfd3bd8ce3f75c5cd22c798572",
"opType" : NumberLong(1),
"historyTime" : NumberLong(1413175037),
"dataObj" : {
"oldValue" : "Bharat",
"currValue" : "Bharat",
"currLinkId" : "c21de2139db546ed5c9453b575ad7afc"
},
"userId" : "93f9f6e9aa6bf205068c162833ab2bcb",
"userName" : "Milan Kevadiya",
"fieldType" : NumberLong(1205),
"historyType" : NumberLong(0)
}
],
"image" : "",
"industry" : "",
"keywords" : false,
"lastContactedOn" : NumberLong(0),
"lastOwnerId" : "301a84d16b2a191db9f9ba6df46d540e",
"lastUpdatedOn" : NumberLong(1396415364),
"name" : "Bharat Pvt",
"notes" : [],
"originalOwnerId" : "301a84d16b2a191db9f9ba6df46d540e",
"ownerId" : "301a84d16b2a191db9f9ba6df46d540e",
"people" : [
{
"designation" : "Employee",
"fullName" : "Bharat",
"personId" : "c21de2139db546ed5c9453b575ad7afc",
"uniqueId" : "713f5246b38a5104c27b058223164b79"
}
],
"phones" : [],
"relation" : "",
"ribbinColor" : NumberLong(0),
"source" : "",
"tags" : [],
"urls" : []
}

Thank you.

On Monday, March 16, 2015 at 8:34:50 PM UTC+5:30, David Pilato wrote:

What does your document look like?
Any example?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 mars 2015 à 03:47, Kishan Kachchhi <log2k...@gmail.com <javascript:>>
a écrit :

This post has NOT been accepted by the mailing list yet.
I am using mongodb-river with mapper-attachments.

Config->Elasticsearch.yml has edited to

threadpool.bulk.type: fixed
threadpool.bulk.size: 2 # availableProcessors
threadpool.bulk.queue_size: 5000000


While I am defining the meta for particular river got an error like:

failed to execute bulk item (index) index {[index][type][data with nested
array obj]
<......Data.....>
<......Data.....>
org.elasticsearch.index.mapper.MapperParsingException: object mapping for
[TypeName] with array for [Field] tried to parse as array, but got EOF, is
there a mismatch in types for the same field?

at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeNonDynamicArray(ObjectMapper.java:694)
at
org.elasticsearch.index.mapper.object.ObjectMapper.serializeArray(ObjectMapper.java:623)
at
org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:492)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:541)
at
org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:490)
at
org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:413)
at
org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:435)
at
org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:150)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:511)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:419)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


Thanks.

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0e86c5cc-2d1a-44dc-801a-3001e74200de%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/0e86c5cc-2d1a-44dc-801a-3001e74200de%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/1273563e-e615-45f0-8c32-137924d93b93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.