Last active
August 2, 2017 08:09
-
-
Save ramr/022229b65c8d77db9571a81c523b5984 to your computer and use it in GitHub Desktop.
connector json config snippet for plugin support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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