Showing: 1 RESULTS
Data Database

📦 Marklogic

Marklogic For a recap on what-is-marklogic-server, see this article. Documents Add Documents Using Javascript: From Files ‘use strict’; declareUpdate(); // Mandatory to edit resources in MArklogic xdmp.documentLoad(“path/file.json”); // Keep Uri as path/file.json xdmp.documentLoad(“path/file.json”, {‘uri’: ‘NewUriPath’}); // Change Uri to NewUriPath /*Load Bulk documents*/ const pathToDocs = ‘/home/Docs’; const docResults = xdmp.filesystemDirectory(pathYoDocs); docResults.forEach(fucntion(doc){ xdmp.documentLoad(doc.pathname, {‘uri’:’/patents/’+doc.filename})}); Using …