Yves.Forkl | 22 May 16:36 2015

[MarkLogic Dev General] Server Error "Invalid lexical value" after fresh install of MarkLogic 8.0-2

Hi,

on a server which had ML 7 on it before, I deleted all of the data and then made a fresh install of ML 8, by
following the steps explained here: http://docs.marklogic.com/guide/installation/procedures

Environment: CentOS 6.6, Java 8

Commands issued:

/etc/init.d/MarkLogic stop
rpm -e MarkLogic
rm -fr /opt/MarkLogic/*
rm -fr /var/opt/MarkLogic
yum install ./MarkLogic-8.0-2.x86_64.rpm
/etc/init.d/MarkLogic start

Everything went fine until step "Checking for the Correct Software Version" as described here:
http://docs.marklogic.com/guide/installation/procedures#id_84772

Clicking on the status tab for the host left me with the following error:

500: Internal Server Error
XDMP-LEXVAL: ss:request-rate("1.149613") -- Invalid lexical value "1.149613"
In /host-status.xqy on line 324
In displayForm()
$host = xs:unsignedLong("11642766665862851757")
$snode = <host-status xmlns="http://marklogic.com/xdmp/status/host"><host-id>11642766665862851757</host-id><host-name>deg-db-04</hos...</host-status>
$sstats = (<server-status
xmlns="http://marklogic.com/xdmp/status/server"><server-id>5755989291594472266</server-id><server-name>App-Servi...</server-status>,
<server-status
(Continue reading)

Kapoor, Pragya | 22 May 12:01 2015

[MarkLogic Dev General] Get Request Id of the current request

Hi,


Is there any way to find out the request-id of the current request sent to ML,

so that I can use the same request Id in xdmp:request-cancel.


Thanks

Pragya

"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
<div>
<div>
<p>Hi,<br></p>
<p><br></p>
<p><span><span><span>Is there any way to find out the&nbsp;</span></span><span><span><span>request-id
 of the current request sent to ML,</span></span></span><br></span></p>
<p><span><span><span><span>so
 that I can use the same request Id in&nbsp;</span></span></span><span><span><span>x</span></span></span><span><span><span>dmp:req</span></span></span><span><span><span>uest-cancel.</span></span></span></span></p>
<p><span><span><span><span><br></span></span></span></span></p>
<p><span><span><span><span>Thanks</span></span></span></span></p>
<p><span><span><span><span>Pragya</span></span></span></span></p>
</div>
"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
</div>
Kapoor, Pragya | 22 May 10:04 2015

[MarkLogic Dev General] Canceling XQuery requests

Hi,


Is there any way to cancel the Xquery Requests using xquery code?

I know, we cancel the queries using the [cancel] action in the (show more) view of Configure/Groups/Default/App Servers/App-Services[HTTP]/status tab. 


but is there any API which can be used to cancel the queries?


Thanks

Pragya


"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
<div>
<div>
<p>Hi,<br></p>
<p><br></p>
<p>Is there any way to cancel&nbsp;the Xquery Requests using xquery code?<br></p>
<p>I know, we cancel the queries&nbsp;<span>using</span><span> the [cancel] action in the (show more) view of Configure/Groups/Default/App Servers/App-Services[HTTP]/status tab.&nbsp;</span></p>
<p><span><br></span></p>
<p><span>but is there any API which can be used to cancel the queries?</span></p>
<p><span><br></span></p>
<p><span>Thanks</span></p>
<p><span>Pragya</span></p>
<p><br></p>
</div>
"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
</div>
ShaikUmmerFaruk D | 15 May 08:43 2015

[MarkLogic Dev General] Recall: XDMP Bad Char issue

ShaikUmmerFaruk D would like to recall the message, "XDMP Bad Char issue".
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are not 
to copy, disclose, or distribute this e-mail or its contents to any other person and 
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken 
every reasonable precaution to minimize this risk, but is not liable for any damage 
you may sustain as a result of any virus in this e-mail. You should carry out your 
own virus checks before opening the e-mail or attachment. Infosys reserves the 
right to monitor and review the content of all messages sent to or from this e-mail 
address. Messages sent to or from this e-mail address may be stored on the 
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
Kapoor, Pragya | 14 May 09:35 2015

[MarkLogic Dev General] query on xml

Hi,


I need to convert the below input to the desired output.

The elements in the input xml is dynamic(it could be one element,two,three n so on, not fixed).


Input:


 
<results>
    <result>
        <Name>thg</Name>
        <Name>rty</Name>
        <Law>England and Wales</Law>
        <Law>Latvia</Law>
    </result>
    <result>
        <Name>gux</Name>
        <Law>India</Law>
    </result>
    <result>
        <Name>abc</Name>
        <Name>xyz</Name>
        <Name>cde</Name>
        <Law>England</Law>
    </result>
</results>​

desired output:

<results>
    <result>
        <Name>thg</Name>
        <Law>England and Wales</Law></result>
    <result>
        <Name>thg</Name> 
        <Law>Latvia</Law></result>
    <result> 
        <Name>rty</Name> 
        <Law>England and Wales</Law>​</result>
    <result> 
        <Name>rty</Name> 
        <Law>Latvia</Law>​</result>
    <result>
        <Name>gux</Name>
        <Law>India</Law>
    </result>
    <result>
        <Name>abc</Name>
        <Law>England</Law>
    </result>
    <result>
        <Name>xyz</Name>
        <Law>England</Law>
    </result>
    <result>
        <Name>cde</Name>
        <Law>England</Law>
    </result>
</results>​

Thanks
Pragya


"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
<div>
<div>
<p>Hi,<br></p>
<p><br></p>
<p>I need to convert the below input to the desired output.<br></p>
<p>The elements in the input xml is dynamic(it could be one element,two,three n so on, not fixed).<br></p>
<p><br></p>
<p>Input:<br></p>
<p><br></p>
<div>&nbsp;</div>
<div>
<div>&lt;results&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;thg&lt;/Name&gt;<br>
</div>
<div>
<span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&lt;Name&gt;rty&lt;/Name&gt;</span><br>
</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;England and Wales&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;Latvia&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;gux&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;India&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;abc&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;xyz&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;cde&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;England&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &lt;/result&gt;</div>
<div>&lt;/results&gt;&#8203;<br>
</div>
<div><br></div>
<div>desired output:<br>
</div>
<div><br></div>
<div>
<div>&lt;results&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;thg&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;England and Wales&lt;/Law&gt;&lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;thg&lt;/Name&gt;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;Latvia&lt;/Law&gt;&lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;rty&lt;/Name&gt;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;England and Wales&lt;/Law&gt;&#8203;&lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;rty&lt;/Name&gt;&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;Latvia&lt;/Law&gt;&#8203;&lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;gux&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;India&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;abc&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;England&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;xyz&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;England&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &lt;/result&gt;</div>
<div>&nbsp; &nbsp; &lt;result&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Name&gt;cde&lt;/Name&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;Law&gt;England&lt;/Law&gt;</div>
<div>&nbsp; &nbsp; &lt;/result&gt;</div>
<div>&lt;/results&gt;&#8203;<br>
</div>
<br>
</div>
Thanks<br>
</div>
<div>Pragya<br>
</div>
<p><br></p>
</div>
"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
</div>
Tim | 12 May 22:01 2015
Picon

[MarkLogic Dev General] Dynamically creating an xpath expression in xquery

Hi Folks,

 

What’s the best way to dynamically create and access the value of a field give a document and the xpath, e.g.

 

let $doc := doc(“/record.xml”)

let $path := “/xyz:root/xyz:name

return the concatenation of the two…

 

Thank you!

 

Tim M.

<div><div class="WordSection1">
<p class="MsoNormal"><span>Hi Folks,<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>What&rsquo;s the best way to dynamically create and access the value of a field give a document and the xpath, e.g. <p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>let $doc := doc(&ldquo;/record.xml&rdquo;)<p></p></span></p>
<p class="MsoNormal"><span>let $path := &ldquo;/xyz:root/xyz:name<p></p></span></p>
<p class="MsoNormal"><span>return the concatenation of the two&hellip;<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Thank you!<p></p></span></p>
<p class="MsoNormal"><span><p>&nbsp;</p></span></p>
<p class="MsoNormal"><span>Tim M.<p></p></span></p>
</div></div>
Andreas Hubmer | 12 May 14:37 2015

[MarkLogic Dev General] Performance of cts:element-values

Hi,

I am retrieving the values of several elements and would like to know whether there is a performance difference between
* calling cts:element-values((xs:QName("a"), xs:QName("b")))
* and calling cts:element-values(xs:QName("a")) and cts:element-values(xs:QName("b")) separately and manually merging the values.

Why do I want to do it manually? Actually I will not only use cts:element-values but also cts:element-attribute-values. I will have a dynamic list of element names and element+attribute names and want to retrieve all their values and frequencies.

Regards,
Andreas


--
Andreas Hubmer
IT Consultant


OUR TEAM IS YOUR SUCCESS

UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
<div><div dir="ltr">Hi,<div><br></div>
<div>I am retrieving the values of several elements and would like to know whether there is a performance difference between</div>
<div>* calling&nbsp;cts:element-values((xs:QName("a"), xs:QName("b")))</div>
<div>* and calling cts:element-values(xs:QName("a")) and cts:element-values(xs:QName("b")) separately and manually merging the values.</div>
<div><br></div>
<div>Why do I want to do it manually? Actually I will not only use cts:element-values but also cts:element-attribute-values. I will have a dynamic list of element names and element+attribute names and want to retrieve all their values and frequencies.</div>
<div><br></div>
<div>Regards,</div>
<div>Andreas</div>
<div>
<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr">
<div dir="ltr">
<span>Andreas Hubmer</span><br>
</div>
<div>IT Consultant</div>
<div dir="ltr"><br></div>
<div dir="ltr">Email: <a href="mailto:andreas.hubmer@..." target="_blank">andreas.hubmer <at> ebcont.com</a><br>
</div>
<div dir="ltr">Web: <a href="http://www.ebcont.com" target="_blank">http://www.ebcont.com</a>
</div>
<div dir="ltr"><br></div>
<div dir="ltr">OUR TEAM IS YOUR SUCCESS</div>
<div dir="ltr"><br></div>
<div dir="ltr">UID-Nr. ATU68135644</div>
<div dir="ltr">HG St.P&ouml;lten - FN 399978 d</div>
</div></div></div></div>
</div>
</div></div>
Kapoor, Pragya | 12 May 12:39 2015

[MarkLogic Dev General] Get element name from cts:and-query

Hi,


Is it possible to find the name of the element from cts:and-query/cts:or-query?

for example:


Query:=
cts:and-query(cts:element-value-query(fn:QName("ROC100CP", "Applicable"), "Yes", ("case-insensitive","punctuation-insensitive","lang=en"), 1), ())


Output : ROC100CP:Applicable


Thanks
Pragya


"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
<div>
<div>
<p>Hi,<br></p>
<p><br></p>
<p>Is it possible to find the name of the element from cts:and-query/cts:or-query?<br></p>
<p>for example:<br></p>
<div>
<div>
<div class="CodeMirror-selected">
</div>
</div>
<div>
<br>
<span>Query:=</span>
<br>
cts:and-query(cts:element-value-query(fn:QName("ROC100CP", "Applicable"), "Yes", ("case-insensitive","punctuation-insensitive","lang=en"), 1), ())<br>
<br>
<br>
<span>Output : </span>ROC100CP:<span>Applicable</span><span>&#8203;</span><br><br>
<br>
<span><span>Thanks</span><br></span>
<span><span>Pragya</span></span><span></span><br>
</div>
</div>
<p><br></p>
</div>
"This e-mail and any attachments transmitted with it are for the sole use of the intended recipient(s) and may contain confidential , proprietary or privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this e-mail or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful."
</div>
Prasanth N V R | 12 May 11:12 2015
Picon

[MarkLogic Dev General] HTTP call to execute XQuery

Hi,

In a XCC call from Java to ML, we use session.newAdhocQuery() to execute particular xquery code snippet against ML.

AdhocQuery q = session.newAdhocQuery(XQUERY_VERSION_1_0_ML
               + DECLARE_NS_MLSS_XDMP_STATUS_SERVER_V1_0
               + "let $status := \n"
               + " xdmp:server-status(xdmp:host(), xdmp:server())\n"
               + "let $modules := $status/mlss:modules\n"
               + "let $root := $status/mlss:root\n"
               + "return (data($root))");

Can I get to know whether it is possible to do the same using http call within ML(from a xqy file) using any functions like xdmp:http-post/get.

Currently there is a way to execute using CQ's eval.xqy file to evaluate a xquery and get response back.

As far I searched, I could not find a way to execute a xquery code snippet without having that in a ".xqy" file using http.

My requirement is to execute a xquery code from one host to another host without having that in a ".xqy" file.

Can we directly pass a query and get results back using http call.

Thanks,
Prasanth
<div><div dir="ltr">Hi,<div><br></div>
<div>In a XCC call from Java to ML, we use session.newAdhocQuery() to execute particular xquery code snippet against ML.</div>
<div><br></div>
<div>
<div>AdhocQuery q = session.newAdhocQuery(XQUERY_VERSION_1_0_ML</div>
<div>
<span class="">			</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ DECLARE_NS_MLSS_XDMP_STATUS_SERVER_V1_0</div>
<div>
<span class="">			</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ "let $status := \n"</div>
<div>
<span class="">			</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ " xdmp:server-status(xdmp:host(), xdmp:server())\n"</div>
<div>
<span class="">			</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ "let $modules := $status/mlss:modules\n"</div>
<div>
<span class="">			</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ "let $root := $status/mlss:root\n"</div>
<div>
<span class="">			</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ "return (data($root))");</div>
</div>
<div><br></div>
<div>Can I get to know whether it is possible to do the same using http call within ML(from a xqy file) using any functions like xdmp:http-post/get.</div>
<div><br></div>
<div>Currently there is a way to execute using CQ's eval.xqy file to evaluate a xquery and get response back.<br>
</div>
<div><br></div>
<div>As far I searched, I could not find a way to execute a xquery code snippet without having that in a ".xqy" file using http.</div>
<div><br></div>
<div>My requirement is to execute a xquery code from one host to another host without having that in a ".xqy" file.</div>
<div><br></div>
<div>Can we directly pass a query and get results back using http call.</div>
<div><br></div>
<div>Thanks,</div>
<div>Prasanth</div>
</div></div>
Kari Cowan | 12 May 04:26 2015

[MarkLogic Dev General] xdmp:node-replace

I am trying to use xdmp:node-replace to change a node value.  Assume ‘theTranslation’ is a value I am matching in another document, and ‘firmname’ exists as a node or as text, depending on how I reference it, how do I use node-replace to change the value of theFirmname?

 

xdmp:node-replace($theFirmname/text(),$translation/text())

 

 

 

The theTranslation firmname to insert is:

text

Freehill, Hogan & Mahar, LLP

 

The firmname to be changed is:

text 

Freehill, Hogan & Mahar

 

 

Or…. I could do it this way, (and I specified firmname to be a node value not text…. Will return a conflicting updates exception. 

 

xdmp:node-replace($theFirmname,<firmname>$translation/text()</firmname>)

 

[1.0-ml] XDMP-CONFLICTINGUPDATES: xdmp:eval("xquery version &quot;1.0-ml&quot;;&#10;declare namespace html = ...", (), <options xmlns="xdmp:eval"><database>4793418423724769125</database><modules>529627520719988...</options>) -- Conflicting updates xdmp:node-replace(fn:doc("/olympus/pacer-xml/1155991_2:13-cv-00188")/case/parties/party[1]/representedBy/counsel/firmname, <firmname>$translation/text()</firmname>) and xdmp:node-replace(fn:doc("/olympus/pacer-xml/1155991_2:13-cv-00188")/case/parties/party[1]/representedBy/counsel/firmname, <firmname>$translation/text()</firmname>)

 

I am feeling flustered.  Is there an easier way to do this?

 

 

 

Learn more about ALM, visit http://www.alm.com . – ALM, an Integrated Media Company, is a leading provider of news and information for the legal and commercial real estate markets. ALM’s market-leading brands include The American Lawyer, Corporate Counsel, GlobeSt.com, Insight Conferences, Law.com, Law Journal Press, LegalTech, The National Law Journal and Real Estate Forum.
<div>
<div class="WordSection1">
<p class="MsoNormal">I am trying to use xdmp:node-replace to change a node value. &nbsp;Assume &lsquo;theTranslation&rsquo; is a value I am matching in another document, and &lsquo;firmname&rsquo; exists as a node or as text, depending on how I reference it, how do I use node-replace to
 change the value of theFirmname?<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">xdmp:node-replace($theFirmname/text(),$translation/text())<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>The theTranslation firmname to insert is:
<p></p></span></p>
<p class="MsoNormal">
<span>text
<p></p></span></p>
<p class="MsoNormal"><span>Freehill, Hogan &amp; Mahar, LLP<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>The firmname to be changed is:
<p></p></span></p>
<p class="MsoNormal">
<span>text<a href="http://10.6.0.95:8000/qconsole/"><span>&nbsp;</span></a><p></p></span></p>
<p class="MsoNormal"><span>Freehill, Hogan &amp; Mahar<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">Or&hellip;. I could do it this way, (and I specified firmname to be a node value not text&hellip;. Will return a conflicting updates exception.&nbsp;
<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">xdmp:node-replace($theFirmname,&lt;firmname&gt;$translation/text()&lt;/firmname&gt;)<p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><span>[1.0-ml] XDMP-CONFLICTINGUPDATES: xdmp:eval("xquery version &amp;quot;1.0-ml&amp;quot;;&amp;#10;declare namespace html
 = ...", (), &lt;options xmlns="xdmp:eval"&gt;&lt;database&gt;4793418423724769125&lt;/database&gt;&lt;modules&gt;529627520719988...&lt;/options&gt;) -- Conflicting updates xdmp:node-replace(fn:doc("/olympus/pacer-xml/1155991_2:13-cv-00188")/case/parties/party[1]/representedBy/counsel/firmname,
 &lt;firmname&gt;$translation/text()&lt;/firmname&gt;) and xdmp:node-replace(fn:doc("/olympus/pacer-xml/1155991_2:13-cv-00188")/case/parties/party[1]/representedBy/counsel/firmname, &lt;firmname&gt;$translation/text()&lt;/firmname&gt;)<p></p></span></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal">I am feeling flustered.&nbsp; Is there an easier way to do this? <p></p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
<p class="MsoNormal"><p>&nbsp;</p></p>
</div>

<div>
<p></p>
Learn more about ALM, visit <a href="http://www.alm.com">http://www.alm.com</a> . &ndash; ALM, an Integrated Media Company, is a leading provider of news and information for the legal and commercial real estate markets. ALM&rsquo;s market-leading brands include The American Lawyer, Corporate Counsel, GlobeSt.com, Insight Conferences, Law.com, Law Journal Press, LegalTech, The National Law Journal and Real Estate Forum.
</div>
</div>
Geert Josten | 11 May 20:19 2015

Re: [MarkLogic Dev General] XDMP-FRAGTOOLARGE

Hi Shashidhar,

I’m wondering how large the original file was, probably not 32gb. I’m also wondering how it ended up getting inserted without trouble. Almost as if memory values have been tuned down afterwards.

I’d decrease memory list size to a more reasonable value, and instead take a look at in memory tree size as well. It is also suggested to keep journal size larger than list size + tree size at minimum.

You could of course delete the file, that should just work, but I can’t judge whether the file contains valuable information or not.

It is also suggested to split that file into smaller parts. Best to do that at ingest time, but if that is not an option, fragmentation might help here. But word of warning fragmentation also influences how queries behave, and have some other side effects as well. We typically recommend against it..

Kind regards,
Geert

From: Shashidhar Rao <raoshashidhar123-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Monday, May 11, 2015 at 6:52 PM
To: Geert Josten <geert.josten-efBvD/aTHCF8UrSeD/g0lQ@public.gmane.org>
Subject: XDMP-FRAGTOOLARGE

Hi Geert,

I am getting this error. I tried posting but not getting any replies.

Can you suggest anything to resolve this error.


There is currently an XDMP-FORESTERR: Error in reindex of forest PROD_DB_1: XDMP-REINDEX: Error reindexing fn:doc("/home/data/TD078999.XML"):
XDMP-FRAGTOOLARGE: Fragment of /home/data/TD078999.XML too large for in-memory storage:
: In-memory list storage full; list: table=100%, wordsused=50%, wordsfree=25%,
overhead=25%; tree: table=0%, wordsused=6%, wordsfree=94%, overhead=0% exception. Information on this page may be missing.

Any suggestion on how to resolve this error?

My in memory list is 32699MB

How can I increase this value or can I delete this file?

Please help

Thanks
<div>
<div>Hi Shashidhar,</div>
<div><br></div>
<div>I&rsquo;m wondering how large the original file was, probably not 32gb. I&rsquo;m also wondering how it ended up getting inserted without trouble. Almost as if memory values have been tuned down afterwards.</div>
<div><br></div>
<div>I&rsquo;d decrease memory list size to a more reasonable value, and instead take a look at in memory tree size as well. It is also suggested to keep journal size larger than list size + tree size at minimum.</div>
<div><br></div>
<div>You could of course delete the file, that should just work, but I can&rsquo;t judge whether the file contains valuable information or not.</div>
<div><br></div>
<div>It is also suggested to split that file into smaller parts. Best to do that at ingest time, but if that is not an option, fragmentation might help here. But word of warning fragmentation also influences how queries behave, and have some other side effects
 as well. We typically recommend against it..</div>
<div><br></div>
<div>Kind regards,</div>
<div>Geert</div>
<div><br></div>
<span>
<div>
<span>From: </span>Shashidhar Rao &lt;<a href="mailto:raoshashidhar123@...">raoshashidhar123@...</a>&gt;<br><span>Date: </span>Monday, May 11, 2015 at 6:52 PM<br><span>To: </span>Geert Josten &lt;<a href="mailto:geert.josten@...">geert.josten@...</a>&gt;<br><span>Subject: </span>XDMP-FRAGTOOLARGE<br>
</div>
<div><br></div>
<div>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div>Hi Geert,<br><br>
</div>
I am getting this error. I tried posting but not getting any replies.<br><br>
</div>
Can you suggest anything to resolve this error.<br><div>
<div>
<br><br>
There is currently an XDMP-FORESTERR: Error in reindex of forest PROD_DB_1: XDMP-REINDEX: Error reindexing fn:doc("/home/data/TD078999.XML"):
<br>
XDMP-FRAGTOOLARGE: Fragment of /home/data/TD078999.XML too large for in-memory storage:
<br>
: In-memory list storage full; list: table=100%, wordsused=50%, wordsfree=25%, <br>
overhead=25%; tree: table=0%, wordsused=6%, wordsfree=94%, overhead=0% exception. Information on this page may be missing.
<br><br>
Any suggestion on how to resolve this error?<br><br>
My in memory list is 32699MB<br><br>
</div>
<div>How can I increase this value or can I delete this file?<br><br>
</div>
<div>Please help<br><br>
</div>
Thanks</div>
</div>
</div>
</div>
</div>
</span>
</div>

Gmane