[MarkLogic Dev General] MLCP input query

Prasanth N V R prasanth.nvr04 at gmail.com
Sun Jan 24 16:22:37 PST 2016


Hi,

I am trying to copy documents from one DB to another DB using MLCP.

Here is my command(running in Windows)
mlcp.bat copy -input_host localhost -input_port 5767 -input_username admin
-input_password admin ^
-output_host localhost -output_port 5767 -output_username admin
-output_password admin ^
-input_database samplestack-modules ^
-output_database Documents ^
-query_filter
cts:search(doc(),cts:directory-query("/Default/samplestack/rest-api/options/","infinity"))

But am getting error when i execute the above command.
ERROR mapreduce.MarkLogicInputFormat:
com.marklogic.xcc.exceptions.XQueryException: XDMP-DOCROOTTEXT:
xdmp:unquote("cts:search(doc(),cts:directory-query(/Default/samplestack/rest-a...")
-- Invalid root text
"cts:search(doc(),cts:directory-query(/Default/samplestack/rest-api/options/,infinity))"
at  line 1
 [Session: user=admin, cb=samplestack-modules [ContentSource: user=admin,
cb=samplestack-modules


How can I pass a query in command line to select matching documents?

Thanks,
Prasanth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20160124/22e66d63/attachment.html 


More information about the General mailing list