I am trying extract report from Marklogic but for each uri I am getting one document.
java -cp marklogic-xcc-10.0.10.jar:marklogic-corb-2.5.6.jar -DXCC-CONNECTION-URI=xcc://user:pw@host:5008 -DPROCESS-MODULE=/corb/transform-docs.xqy -DTHREAD-COUNT=2 -DURIS-MODULE=/corb/get-uris.xqy -DPROCESS-TASK=com.marklogic.developer.corb.ExportToFileTask -DEXPORT-FILE-NAME=/reports/testfile.csv com.marklogic.developer.corb.Manager
MarkLogic version - 10.x
In the process module I am just returning string value.
I want to generate one output file only, which should have all of the returned uris.
If you want to write all of the output to a single doc, then you should use the
ExportBatchToFileTaskinstead ofExportToFileTask.The description listed in the PROCESS-TASK
So, configure the ExportBatchToFileTask:
instead of ExportToFileTask.