Malformed Content?


(bailey) #1

Hi All-

I'm receiving a malformed content exception that I think is being
triggered by putting an empty json object ( {} ) into storage.
This happens with and with out a schema present.
Is this expected behavior?

Caused by: org.elasticsearch.index.mapper.MapperException: Malformed
content, after first object, either the type field or the actual
properties should exist
at
org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:
367)
at
org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:
344)
at
org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:
233)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:
166)
at
org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:
66)
at
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:
418)
... 5 more

Thanks!


(Shay Banon) #2

Yep.

On Thu, Jan 6, 2011 at 10:21 PM, bailey matt.bailey@gmail.com wrote:

Hi All-

I'm receiving a malformed content exception that I think is being
triggered by putting an empty json object ( {} ) into storage.
This happens with and with out a schema present.
Is this expected behavior?

Caused by: org.elasticsearch.index.mapper.MapperException: Malformed
content, after first object, either the type field or the actual
properties should exist
at

org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:
367)
at

org.elasticsearch.index.mapper.xcontent.XContentDocumentMapper.parse(XContentDocumentMapper.java:
344)
at

org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:
233)
at

org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:
166)
at

org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:
66)
at

org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction

$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:
418)
... 5 more

Thanks!


(system) #3