Created
June 20, 2013 16:43
-
-
Save missinglink/5824403 to your computer and use it in GitHub Desktop.
Example of mapping field names during a river update
This file contains hidden or 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
| $ curl -XPUT "localhost:9200/_river/mongoscriptfilter/_meta" -d' | |
| { | |
| "type": "mongodb", | |
| "mongodb": { | |
| "db": "testmongo", | |
| "collection": "documents", | |
| "script": "ctx.document.title = ctx.document.title_from_mongo; delete ctx.document.title_from_mongo;" | |
| }, | |
| "index": { | |
| "name": "testmongo", | |
| "type": "documents" | |
| } | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment