Using Transform Module during MLCP Ingestion to MarkLogic
问题 I am trying to implement envelope pattern when i am ingesting documents through MLCP My transform Module is like this : function envelope(content, context) { var transformed ={}; transformed.Metadata = { "Created" : "Time"}; transformed.Source = content.value; content.uri = fn.concat("/transformed/",content.uri); content.value = transformed; }; exports.transform = envelope; My MLCP Command is like this mlcp.bat import -host localhost -port 8000 -username admin - password admin -mode local