I am trying to use mapreduce.marklogic.input.query  in the configuration file 
for MLCP export. It works for
for $doc at $pos in fn:doc()
                    return $doc
but not for
         for $doc at $pos in fn:doc()
                    return document { element e { $doc//accountNumber } }

Anyone knows why?

Here is the config file that I am using...
<configuration>
    <property>
        <name>mapreduce.marklogic.input.query</name>
        <value><![CDATA[
         xquery version "1.0-ml";
            declare namespace mlmr="http://marklogic.com/hadoop";;
                for $doc at $pos in fn:doc()
                    return $doc
  ]]></value>
    </property>
    <property>
        <name>mapreduce.marklogic.input.splitquery</name>
        <value><![CDATA[
            xquery version "1.0-ml";
            import module namespace hadoop = "http://marklogic.com/xdmp/hadoop";
              at "/MarkLogic/hadoop.xqy";
            hadoop:get-splits('', 'fn:collection("upp-input")', '()')
  ]]></value>
    </property>
    <property>
        <name>mapreduce.marklogic.input.mode</name>
        <value>advanced</value>
    </property>
</configuration>

Thanks,
Vinu.

Disclaimer

This message (and any attachments) is confidential and is intended only for the 
addressee(s). This message may contain information that is protected by one or 
more legally recognized privileges. If the reader of this message is not the 
intended recipient, I did not intend to waive, and I do not waive, any legal 
privilege or the confidentiality of the message. If you receive this message in 
error, please notify me immediately by return e-mail and delete this message 
from your computer and network without saving it in any manner. The 
unauthorized use, dissemination, distribution, or reproduction of this message, 
including attachments, is prohibited and may be unlawful.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to