<div dir="ltr">Thanks Peter.<div><br></div><div>It worked finally!</div><div>mlcp.bat copy -input_host localhost -input_port 5767 -input_username admin -input_password admin ^</div><div>-output_host localhost -output_port 5767 -output_username admin -output_password admin ^</div><div>-input_database samplestack-modules ^</div><div>-output_database Documents ^</div><div>-query_filter &quot;&lt;cts:directory-query depth=\&quot;infinity\&quot; xmlns:cts=\&quot;<a href="http://marklogic.com/cts\">http://marklogic.com/cts\</a>&quot;&gt;&lt;cts:uri&gt;/Default/samplestack/rest-api/options/&lt;/cts:uri&gt;&lt;/cts:directory-query&gt;&quot;</div><div><br></div><div>Thanks all for the timely help!</div><div><br></div><div>Kind feedback - </div><div>In the mlcp -query_filter, giving double quotes and escaping it in a real time(large queries) would be tedious.</div><div>So, MarkLogic MLCP can provide an additional option much similar to the XQSync INPUT_QUERY which takes only uris as input and process it in parallel threads.<br></div><div>It would be really great if this is implemented in MLCP.</div><div><br></div><div>Thanks,</div><div>Prasanth</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 28, 2016 at 4:26 AM, Peter Kester <span dir="ltr">&lt;<a href="mailto:Peter.Kester@marklogic.com" target="_blank">Peter.Kester@marklogic.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:16px;font-family:Calibri,sans-serif">
<div>
<div>This will also work on the command line</div>
<div>:</div>
<div>
<div>-query_filter &quot;&lt;cts:directory-query depth=\”infinity\&quot; xmlns:cts=\&quot;<a href="http://marklogic.com/cts" target="_blank">http://marklogic.com/cts</a>\&quot;&gt;&lt;cts:uri&gt;/Default/samplestack/rest-api/options/&lt;/cts:uri&gt;&lt;/cts:directory-query&gt;”</div>
</div>
<div><br>
</div>
<div>You need to put double quotes around the cts query and escape all double quotes inside</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div></div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt"><span class="">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:general-bounces@developer.marklogic.com" target="_blank">general-bounces@developer.marklogic.com</a>&gt; on behalf of Prasanth N V R<br>
<span style="font-weight:bold">Reply-To: </span>MarkLogic Developer Discussion<br>
</span><span class=""><span style="font-weight:bold">Date: </span>Thursday 28 January 2016 00:16<br>
</span><div><div class="h5"><span style="font-weight:bold">To: </span>MarkLogic Developer Discussion<br>
<span style="font-weight:bold">Subject: </span>Re: [MarkLogic Dev General] MLCP input query<br>
</div></div></div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">I just tried the same.
<div>
<div>mlcp.bat copy -input_host localhost -input_port 5767 -input_username admin -input_password admin ^</div>
<div>-output_host localhost -output_port 5767 -output_username admin -output_password admin ^</div>
<div>-input_database Documents ^</div>
<div>-output_database Documents ^</div>
<div>-query_filter &#39;cts:element-value-query(xs:QName(&quot;Type&quot;),&quot;TuchtrechtelijkeInstantie&quot;)&#39;</div>
</div>
<div><br>
</div>
<div>But still getting the error.</div>
<div>
<div>ERROR mapreduce.MarkLogicInputFormat: com.marklogic.xcc.exceptions.XQueryException: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected QName_, expecting Rpar_ [Session: user=admin, cb=Documents [ContentSource: user=admin, cb=Documents</div>
</div>
<div><br>
</div>
<div>Please help me to solve this.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Prasanth</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 26, 2016 at 12:34 PM, Peter Kester <span dir="ltr">
&lt;<a href="mailto:Peter.Kester@marklogic.com" target="_blank">Peter.Kester@marklogic.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:16px;font-family:Calibri,sans-serif">
<div>
<div>You could try this:</div>
<div>-query_filter &#39;cts:element-value-query(xs:QName(&quot;Type&quot;),&quot;TuchtrechtelijkeInstantie”)&#39;</div>
<div>This will be expanded to </div>
<div>cts:search(/,cts:element-value-query(xs:QName(&quot;Type&quot;),&quot;TuchtrechtelijkeInstantie”)) </div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Peter</div>
<div><br>
</div>
<div>
<div></div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span><span style="font-weight:bold">From: </span>&lt;<a href="mailto:general-bounces@developer.marklogic.com" target="_blank">general-bounces@developer.marklogic.com</a>&gt; on behalf of Prasanth N V R<br>
<span style="font-weight:bold">Reply-To: </span>MarkLogic Developer Discussion<br>
</span><span style="font-weight:bold">Date: </span>Tuesday 26 January 2016 14:25
<div>
<div><br>
<span style="font-weight:bold">To: </span>MarkLogic Developer Discussion<br>
<span style="font-weight:bold">Subject: </span>Re: [MarkLogic Dev General] MLCP input query<br>
</div>
</div>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Thanks Peter.
<div><br>
</div>
<div>-directory_filter works for me. It is able to copy documents based on this.</div>
<div><br>
</div>
<div>
<div style="font-size:12.8px">In general, I am curious to know how to send the uris as INPUT_QUERY similar to how we do in XQSync.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">In XQSync, the INPUT_QUERY will be given as - cts:uris((),(),cts:element-value-query(xs:QName(&quot;bucket&quot;),&quot;samplequestion&quot;)).</div>
<div style="font-size:12.8px">This takes all the uris matching this query and processed.</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">But I do not know how to achieve this in MLCP.</div>
</div>
<div style="font-size:12.8px"><br>
</div>
<div style="font-size:12.8px">If you suggest some working example it would be great.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jan 26, 2016 at 3:16 AM, Peter Kester <span dir="ltr">
&lt;<a href="mailto:Peter.Kester@marklogic.com" target="_blank">Peter.Kester@marklogic.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:16px;font-family:Calibri,sans-serif">
<div>
<div>
<div>Hi Prasanth,</div>
<div><br>
</div>
<div>Just checked the docs:</div>
<div><br>
</div>
<div>You need to quote the cts:query</div>
<div>Sou your query_filter needs to be:</div>
<div>
<div style="font-family:Calibri">-query_filter &#39;cts:directory-query(&quot;/Default/samplestack/rest-api/options/&quot;,&quot;infinity”)’ according to the doc, but you would probably be better off with the directory_filter option if you just want to select documents from a
 given directory inside ML.</div>
</div>
<div style="font-family:Calibri">Check this section of the documentation: <a href="https://docs.marklogic.com/guide/mlcp/export#id_47556" style="font-family:Calibri,sans-serif" target="_blank">https://docs.marklogic.com/guide/mlcp/export#id_47556</a></div>
<div style="font-family:Calibri"><br>
</div>
<div style="font-family:Calibri">HTH</div>
<div style="font-family:Calibri"><br>
</div>
<div style="font-family:Calibri">Peter</div>
<div><br>
</div>
<div>
<div></div>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span><span style="font-weight:bold">From: </span>&lt;<a href="mailto:general-bounces@developer.marklogic.com" target="_blank">general-bounces@developer.marklogic.com</a>&gt; on behalf of Prasanth N V R<br>
<span style="font-weight:bold">Reply-To: </span>MarkLogic Developer Discussion<br>
</span><span style="font-weight:bold">Date: </span>Tuesday 26 January 2016 04:10<span><br>
<span style="font-weight:bold">To: </span>MarkLogic Developer Discussion<br>
<span style="font-weight:bold">Subject: </span>Re: [MarkLogic Dev General] MLCP input query<br>
</span></div>
<div><br>
</div>
<div>
<div><span>
<div dir="ltr">Thanks for the reply Peter.
<div><br>
</div>
<div>I tried giving it as cts:query(in xml format).</div>
<div>
<div>-query_filter &#39;&lt;cts:directory-query depth=&quot;infinity&quot; xmlns:cts=&quot;<a href="http://marklogic.com/cts" target="_blank">http://marklogic.com/cts</a>&quot;&gt;&lt;cts:uri&gt;/Default/samplestack/rest-api/options/&lt;/cts:uri&gt;&lt;/cts:directory-query&gt;&#39;</div>
<div><br>
</div>
<div>But it is throwing error like - &lt; was unexpected at this time.</div>
</div>
<div><br>
</div>
<div>In general, I am curious to know how to send the uris as INPUT_QUERY similar to how we do in XQSync.</div>
<div><br>
</div>
<div>In XQSync, the INPUT_QUERY will be given as - cts:uris((),(),cts:directory-query(&quot;/Default/samplestack/rest-api/options/&quot;,&quot;infinity&quot;)).</div>
<div>This takes all the uris matching this query and processed.</div>
<div><br>
</div>
<div>But I do not know how to achieve this in MLCP.</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Prasanth</div>
</div>
</span>
<div class="gmail_extra"><br>
<div class="gmail_quote"><span>On Mon, Jan 25, 2016 at 2:58 AM, Peter Kester <span dir="ltr">
&lt;<a href="mailto:Peter.Kester@marklogic.com" target="_blank">Peter.Kester@marklogic.com</a>&gt;</span> wrote:<br>
</span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;font-size:16px;font-family:Calibri,sans-serif">
<div style="color:rgb(0,0,0)"><span>
<div>Hi Prasanth,</div>
<div><br>
</div>
<div>Try making that cts:directory-query an xml representation.</div>
<div>Like this:</div>
</span>
<div>-query-filter <span style="color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;font-size:14px;line-height:1.4;white-space:pre-wrap;background-color:rgb(242,246,248)">&lt;</span><span title="cts:directory-query (http://marklogic.com/cts)" style="color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;font-size:14px;line-height:1.4;white-space:pre-wrap;margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline">cts</span>:<span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline">directory-query</span></span><span style="color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;font-size:14px;line-height:1.4;white-space:pre-wrap;margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline"><span title="depth ()" style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;color:blue"><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline"><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline">depth</span></span>=&quot;<span style="margin:0.2em 0px 0px;padding:0px 0.2em;border:0px;outline:0px;vertical-align:baseline;display:inline-block;line-height:1;border-bottom-left-radius:0.5em;border-bottom-right-radius:0.5em;color:rgb(165,42,42);background-position:initial initial;background-repeat:initial initial">infinity</span>&quot;</span><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;color:rgb(102,102,102)"><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline">xmlns</span>:<span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline">cts</span>=&quot;<span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline"><a href="http://marklogic.com/cts" target="_blank">http://marklogic.com/cts</a></span>&quot;</span></span><span style="color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;font-size:14px;line-height:1.4;white-space:pre-wrap;background-color:rgb(242,246,248)">&gt;</span></div>
<div>
<div>
<div style="margin:0px;padding:0px 0px 0px 0.75em;border-width:0px 0px 0px 1px;border-left-style:dotted;border-left-color:rgb(204,204,204);outline:0px;font-size:14px;vertical-align:baseline;color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;line-height:18px;white-space:pre-wrap;background-color:rgb(255,255,255);background-position:initial initial;background-repeat:initial initial">
<div style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-color:transparent;background-position:initial initial;background-repeat:initial initial">
<span style="padding:0px;border:0px;outline:0px;vertical-align:baseline;display:inline-block;width:16px;min-height:16px;background-image:url();background-color:transparent;background-position:0px 4px;background-repeat:no-repeat no-repeat"></span><span style="margin:0px;padding:0px 1px 0px 0px;border:0px;outline:0px;vertical-align:baseline;line-height:1.4;border-top-left-radius:0.5em;border-bottom-left-radius:0.5em;background-color:rgb(242,246,248);background-position:initial initial;background-repeat:initial initial">&lt;<span title="cts:uri (http://marklogic.com/cts)" style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-color:transparent;background-position:initial initial;background-repeat:initial initial"><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-color:transparent;background-position:initial initial;background-repeat:initial initial">cts</span>:<span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-color:transparent;background-position:initial initial;background-repeat:initial initial">uri</span></span><span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-color:transparent;background-position:initial initial;background-repeat:initial initial"></span>&gt;</span>
<div style="padding:0px;border-width:0px 0px 0px 1px;border-left-style:dotted;border-left-color:rgb(204,204,204);outline:0px;vertical-align:baseline;display:inline;color:black;background-position:initial initial;background-repeat:initial initial">
<div style="padding:0px;border:0px;outline:0px;vertical-align:baseline;display:inline;background-position:initial initial;background-repeat:initial initial">
/Default/samplestack/rest-api/options/</div>
</div>
<span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;line-height:1.4;border-top-right-radius:0.5em;border-bottom-right-radius:0.5em;background-color:rgb(242,246,248);background-position:initial initial;background-repeat:initial initial">&lt;/<span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-color:transparent;background-position:initial initial;background-repeat:initial initial">cts:uri</span>&gt;</span></div>
</div>
<span style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;vertical-align:baseline;line-height:1.4;border-top-right-radius:0.5em;border-bottom-right-radius:0.5em;color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;white-space:pre-wrap;background-color:rgb(242,246,248)">&lt;/<span style="margin:0px;padding:0px;border:0px;outline:0px;vertical-align:baseline;background-color:transparent;background-position:initial initial;background-repeat:initial initial">cts:directory-query</span>&gt;</span>
<div>
<div></div>
</div>
</div>
</div>
</div>
<div>
<div>
<div style="color:rgb(0,0,0)"><span style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;vertical-align:baseline;line-height:1.4;border-top-right-radius:0.5em;border-bottom-right-radius:0.5em;color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;white-space:pre-wrap;background-color:rgb(242,246,248)"><br>
</span></div>
<div><span style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;vertical-align:baseline;line-height:1.4;border-top-right-radius:0.5em;border-bottom-right-radius:0.5em;font-family:Incolsolata,Consolas,monospace;white-space:pre-wrap">Doc
 says:</span></div>
<div style="color:rgb(0,0,0)"><span style="margin:0px;padding:0px;border:0px;outline:0px;font-size:14px;vertical-align:baseline;line-height:1.4;border-top-right-radius:0.5em;border-bottom-right-radius:0.5em;color:rgb(0,128,0);font-family:Incolsolata,Consolas,monospace;white-space:pre-wrap;background-color:rgb(238,243,246)">
<table style="border-spacing:0px;border-collapse:collapse;font-size:12px;line-height:14.4px;margin:20px 0px 1em;color:rgb(102,102,102);font-family:Tahoma,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);background-position:initial initial;background-repeat:initial initial">
<tbody style="border:1px solid rgb(204,204,204)">
<tr>
<td rowspan="1" colspan="1" nowrap style="padding:15px 10px;vertical-align:top;border:1px solid rgb(204,204,204);background-image:none">
<pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,&#39;Courier New&#39;,monospace;font-size:13px;padding:1px;margin-top:0px;margin-bottom:0px;line-height:1.42857;color:rgb(51,51,51);word-break:break-all;word-wrap:break-word;border:1px none rgb(204,204,204);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;max-width:100%">-query_filter <em>string</em></pre>
</td>
<td rowspan="1" colspan="1" nowrap style="padding:15px 10px;vertical-align:top;border:1px solid rgb(204,204,204);background-image:none;background-position:100% 0%">
Specifies a query to apply when selecting documents for export. The argument must be the XML serialization of a cts:query or JSON serialization of a cts.query. Only documents matching the query are considered for export; false positives are possible. For details,
 see<a href="https://docs.marklogic.com/guide/mlcp/export#id_47556" style="color:rgb(1,99,157);text-decoration:none;background-color:transparent" target="_blank">Controlling What is Exported, Copied, or Extracted</a>.<br>
<br>
</td>
</tr>
</tbody>
</table>
</span></div>
<div style="color:rgb(0,0,0)">HTH.</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<div style="color:rgb(0,0,0)">Peter</div>
<div style="color:rgb(0,0,0)"><br>
</div>
<span style="color:rgb(0,0,0)">
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:general-bounces@developer.marklogic.com" target="_blank">general-bounces@developer.marklogic.com</a>&gt; on behalf of Prasanth N V R<br>
<span style="font-weight:bold">Reply-To: </span>MarkLogic Developer Discussion<br>
<span style="font-weight:bold">Date: </span>Monday 25 January 2016 04:59<br>
<span style="font-weight:bold">To: </span>MarkLogic Developer Discussion<br>
<span style="font-weight:bold">Subject: </span>Re: [MarkLogic Dev General] MLCP input query<br>
</div>
<div>
<div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Thanks for you reply Christopher.
<div><br>
</div>
<div>Yes. I tried that too. But I am getting error.</div>
<div><br>
</div>
<div>
<div>mlcp.bat copy -input_host localhost -input_port 5767 -input_username admin -input_password admin ^</div>
<div>-output_host localhost -output_port 5767 -output_username admin -output_password admin ^</div>
<div>-input_database samplestack-modules ^</div>
<div>-output_database Documents ^</div>
<div>-query_filter cts:directory-query(&quot;/Default/samplestack/rest-api/options/&quot;,&quot;infinity&quot;)</div>
</div>
<div><br>
</div>
<div>
<div>ERROR mapreduce.MarkLogicInputFormat: com.marklogic.xcc.exceptions.XQueryException: XDMP-DOCROOTTEXT: xdmp:unquote(&quot;cts:directory-query(/Default/samplestack/rest-api/options/,infin...&quot;) -- Invalid root text &quot;cts:directory-query(/Default/samplestack/rest-api/options/,infinity)&quot;
 at  line 1</div>
<div> [Session: user=admin, cb=samplestack-modules [ContentSource: user=admin, cb=samplestack-modules</div>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Prasanth</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Jan 24, 2016 at 7:27 PM, Christopher Hamlin <span dir="ltr">
&lt;<a href="mailto:cbhamlin@gmail.com" target="_blank">cbhamlin@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">It looks to me like you are sending in a search, not a query.
<div><br>
</div>
<div>So maybe try </div>
<div><br>
</div>
<div>-query_filter <span style="font-size:12.8px">cts:</span><span style="font-size:12.8px">directory-query(&quot;/Default/</span><span style="font-size:12.8px">samplestack/rest-api/options/&quot;</span><span style="font-size:12.8px">,&quot;infinity&quot;)</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
<div><span style="font-size:12.8px">instead.</span></div>
<div><span style="font-size:12.8px"><br>
</span></div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">
<div>
<div>On Sun, Jan 24, 2016 at 7:22 PM, Prasanth N V R <span dir="ltr">&lt;<a href="mailto:prasanth.nvr04@gmail.com" target="_blank">prasanth.nvr04@gmail.com</a>&gt;</span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>I am trying to copy documents from one DB to another DB using MLCP.</div>
<div><br>
</div>
<div>Here is my command(running in Windows)</div>
<div>
<div>mlcp.bat copy -input_host localhost -input_port 5767 -input_username admin -input_password admin ^</div>
<div>-output_host localhost -output_port 5767 -output_username admin -output_password admin ^</div>
<div>-input_database samplestack-modules ^</div>
<div>-output_database Documents ^</div>
<div>-query_filter cts:search(doc(),cts:directory-query(&quot;/Default/samplestack/rest-api/options/&quot;,&quot;infinity&quot;))</div>
</div>
<div><br>
</div>
<div>But am getting error when i execute the above command.<br>
</div>
<div>
<div>ERROR mapreduce.MarkLogicInputFormat: com.marklogic.xcc.exceptions.XQueryException: XDMP-DOCROOTTEXT: xdmp:unquote(&quot;cts:search(doc(),cts:directory-query(/Default/samplestack/rest-a...&quot;) -- Invalid root text &quot;cts:search(doc(),cts:directory-query(/Default/samplestack/rest-api/options/,infinity))&quot;
 at  line 1</div>
<div> [Session: user=admin, cb=samplestack-modules [ContentSource: user=admin, cb=samplestack-modules</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>How can I pass a query in command line to select matching documents?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Prasanth </div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
General mailing list<br>
<a href="mailto:General@developer.marklogic.com" target="_blank">General@developer.marklogic.com</a><br>
Manage your subscription at:<br>
<a href="http://developer.marklogic.com/mailman/listinfo/general" rel="noreferrer" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
General mailing list<br>
<a href="mailto:General@developer.marklogic.com" target="_blank">General@developer.marklogic.com</a><br>
Manage your subscription at:<br>
<a href="http://developer.marklogic.com/mailman/listinfo/general" rel="noreferrer" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span></div>
</div>
</div>
<div>
<div><br>
_______________________________________________<br>
General mailing list<br>
<a href="mailto:General@developer.marklogic.com" target="_blank">General@developer.marklogic.com</a><br>
Manage your subscription at:<br>
<a href="http://developer.marklogic.com/mailman/listinfo/general" rel="noreferrer" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</span></div>
<br>
_______________________________________________<br>
General mailing list<br>
<a href="mailto:General@developer.marklogic.com" target="_blank">General@developer.marklogic.com</a><br>
Manage your subscription at:<br>
<a href="http://developer.marklogic.com/mailman/listinfo/general" rel="noreferrer" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span></div>
<br>
_______________________________________________<br>
General mailing list<br>
<a href="mailto:General@developer.marklogic.com" target="_blank">General@developer.marklogic.com</a><br>
Manage your subscription at:<br>
<a href="http://developer.marklogic.com/mailman/listinfo/general" rel="noreferrer" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></span>
</div>

<br>_______________________________________________<br>
General mailing list<br>
<a href="mailto:General@developer.marklogic.com">General@developer.marklogic.com</a><br>
Manage your subscription at:<br>
<a href="http://developer.marklogic.com/mailman/listinfo/general" rel="noreferrer" target="_blank">http://developer.marklogic.com/mailman/listinfo/general</a><br>
<br></blockquote></div><br></div>