Skip to content

Instantly share code, notes, and snippets.

@ramr
Last active August 2, 2017 08:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramr/022229b65c8d77db9571a81c523b5984 to your computer and use it in GitHub Desktop.
Save ramr/022229b65c8d77db9571a81c523b5984 to your computer and use it in GitHub Desktop.
connector json config snippet for plugin support
{
"continueOnError": true,
"verbosity": 2,
"namespaces": {
/* Other collection info ... */
"meteor_namespace.runData": {
"plugins": [
{
"pluginName": "UpdateElasticsearchIndex",
"info": {
"index": "meteor_namespace.resources",
"query": {
"key": ["_id"],
"xmap": {
"_id": "/resourceId"
}
},
"update": {
"field": "additional_properties",
"key": "_id",
"value": {
"type": "dict",
"keys": ["_id", "name", "value"]
},
"xmap": {
"_id": "/propertyId",
"name": "/propertyName",
"value": "/data/0/value"
}
}
}
}
],
"includeFields": [
"_id",
"resourceId",
"propertyId",
"propertyName",
"data",
"immutable"
]
}
},
"docManagers": [{ /* Doc manager info ... */ }],
"plugins": [
{
"pluginName": "UpdateElasticsearchIndex",
"moduleName": "mongo_connector.plugins.update_elasticsearch_index"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment