mongo-connector icon indicating copy to clipboard operation
mongo-connector copied to clipboard

Changing Index Names or Indexing to DB_Name+<CustomString>

Open thejeff77 opened this issue 7 years ago • 2 comments

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!

thejeff77 avatar Jan 08 '18 21:01 thejeff77

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

a-magdy avatar Mar 08 '18 15:03 a-magdy

refer https://github.com/tigerking/elastic2-doc-manager/ to see if it works as you expected

tigerking avatar Aug 02 '19 02:08 tigerking