Note that there are some explanatory texts on larger screens.

plurals
  1. POElasticSearch with MongoDB doesn't indexing big objects
    primarykey
    data
    text
    <p>I created ES (with MongoDB river plugin) index with folowing information:</p> <pre><code>{ "type": "mongodb", "mongodb": { "db": "mydatabase", "collection": "Users" }, "index": { "name": "users", "type": "user" } } </code></pre> <p>When I insert simple object like:</p> <pre><code>{ "name": "Joe", "surname": "Black" } </code></pre> <p>Everything work without problem (I can see data using ES Head web interface). But when I insert bigger object, it doesn't index it:</p> <pre><code>{ "object": { "text": "Let's do it again!", "boolTest": false }, "type": "coolType", "tags": [ "" ], "subObject1": { "count": 0, "last3": [], "array": [] }, "subObject2": { "count": 0, "last3": [], "array": [] }, "subObject3": { "count": 0, "last3": [], "array": [] }, "usrID": "5141a5a4d8f3a79c09000001", "created": Date(1363527664000), "lastUpdate": Date(1363527664000) } </code></pre> <p>Where can be problem please?</p> <p>Thank you for your help!</p> <p>EDIT: This is error from ES console:</p> <blockquote> <p>org.elasticsearch.index.mapper.MapperParsingException: object mapping for [stream] tried to parse as object, but got EOF, has a concrete value been provided to it? at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:457) at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:486) at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:430) at org.elasticsearch.index.shard.service.InternalIndexShard.prepareIndex(InternalIndexShard.java:318) at org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:157) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:533) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:431) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) [2013-03-20 10:35:05,697][WARN ][org.elasticsearch.river.mongodb.MongoDBRiver$Indexer] failed to executefailure in bulk execution: [0]: index [stream], type [stream], id [514982c9b7f3bfbdb488ca81], message [MapperParsingException[object mapping for [stream] tried to parse as object, but got EOF, has a concrete value been provided to it?]] [2013-03-20 10:35:05,698][INFO ][org.elasticsearch.river.mongodb.MongoDBRiver$Indexer] Indexed 1 documents, 1 insertions 0, updates, 0 deletions, 0 documents per second</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload