Q:

Elasticsearch integration with mongoDB on windows7

When I am running
    curl -XPUT 'http://localhost:9200/_river/test/_meta' -d '{
    "type": "mongodb",
    "mongodb": {
        "db": "test",
        "collection": "es_test"
    },
    "index": {
        "name": "mongoindex",
        "type": "es_test"
    }
}'

I am getting the following exception:
 {"error":"MapperParsingException[Failed to parse]; nested:JsonParseException[Unexpected character ('m' (code 109)): expected a valid value (number,String, array, object, 'true', 'false' or 'null')\n at [Source:[B@61f133ea; line:1, column:8]]; ","status":400}

I've made research myself and found this one elasticsearch users and MongoDB River Plugin for ElasticSearch...tried to implement as showed but however have same error....
 If anyone had experience in working with ES in Windows7 environment,
can you please point out what I am doing wrong? I am completely new to
ElasticSearch and will appreciate your assistance. 

A:

It works for me.  Perhaps you had a bogus character in your shell while you were typing?  Try putting it in a file and running it with the shell.

