richardwilly98 / elasticsearch-river-mongodb

MongoDB River Plugin for ElasticSearch
1.12k stars 215 forks source link

Initial Import not starting, status is "running" #539

Open tsturzl opened 9 years ago

tsturzl commented 9 years ago

Recently we had a breaking change in our schema. We added an object which doesn't need to be included in elasticsearch, so I'm still using the same exact mapping that had worked fine previously. When I try and reindex to a new type I'm unable to get the import to start. It says its running and logs no errors or any additional info. I'm very confused because this is the exact mapping that I had used before and had worked. The only change is I made a new type and a new river with the option to exclude the new field.

These are my river settings:

{
    "type":"mongodb",
    "mongodb":{
        "servers":[
            {
                "host":"db1.redef.co",
                "port":27017
            },
            {
                "host":"db2.redef.co",
                "port":27017
            }
        ],
        "db":"redef-api",
        "collection":"articles",
        "options": {
            "exclude_fields": ["curator_note"]
        }
    },
    "index":{
        "name":"redef",
        "type":"articles_2"
    }
}
tsturzl commented 9 years ago

I completely reinstalled elasticsearch, tried the same mapping and river config and it worked. This leads me to believe that mongo river was not the issue. This ticket can be closed.

akluffy commented 9 years ago

Would you please list all your versions?