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
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"
}