1

I have developed a javascript which uses cts.search on Marklogic host and returns a json. I want to save this document into a unix host location. Thanks in advance.

1 Answers1

4

xdmp.save can save the document to the file system where MarkLogic is running. If you want to save it somewhere else, you'll need to make an HTTP call from there and run a search, then save the results with whatever you use to make the HTTP call.

If that doesn't address what you're looking for, please expand your question so we know better what you're trying to accomplish.

Mads Hansen
  • 63,927
  • 12
  • 112
  • 147
Dave Cassel
  • 8,352
  • 20
  • 38