3

I want to index only specific mongodb collection in elastic search using mongo-connector. Mongodb server has multiple databases having multiple collections. I dont want to index entire database.

2 Answers 2

3

better to have a configuration file as per stated below

https://github.com/mongodb-labs/mongo-connector/wiki/Configuration-Options

https://github.com/mongodb-labs/mongo-connector/blob/master/config.json

Through mapping, we can redirect the indexes of mongo database:collection to index:index_type

    "mapping": {
        "db.collection": "index.index_type",
        "db.source2": "db.dest2"
    }
Sign up to request clarification or add additional context in comments.

Comments

2

I found this option to run specific collection only.

$ mongo-connector -m mongodbserver:27017 -t elasticserver:9200 -d elastic_doc_manager --oplog-ts oplogstatus.txt --namespace-set database.collection

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.