mongo-connector
mongo-connector copied to clipboard
Changing Index Names or Indexing to DB_Name+<CustomString>
The problem is, I can't change the index that mongoconnector maps to... at least I can't figure it out.
Is it possible to change or customize the index name that mongoconnector sends data to?
Say all data is in the "bigdata" database in mongo. Can I change it to offload data into "bigdata-Jan2018" index?
Reference for zero downtime ES mapping & reindex: https://www.elastic.co/blog/changing-mapping-with-zero-downtime
Thanks for any help and/or information!
Yes you can change mapping names in mongo-connector config:
https://github.com/mongodb-labs/mongo-connector/wiki/Configuration-Options#renaming-namespaces
You can check my answer to your question here: https://github.com/mongodb-labs/elastic2-doc-manager/issues/57#issuecomment-371524332 for more details
refer https://github.com/tigerking/elastic2-doc-manager/ to see if it works as you expected