marklogic

MarkLogic install error on centos 7.2

一笑奈何 提交于 2019-12-08 07:35:27
问题 I am trying to install MarkLogic-RHEL6-8.0-5.x86_64.rpm on CENTos7 - and getting this error: [root@localhost marklogic]# rpm -i MarkLogic-RHEL6-8.0-5.x86_64.rpm error: Failed dependencies: libsasl2.so.2()(64bit) is needed by MarkLogic-8.0-5.x86_64 libc.so.6(GLIBC_2.11) is needed by MarkLogic-8.0-5.x86_64 Could not find any way to resolve this using yum or any other way. OS version is: [root@localhost marklogic]# cat /etc/*elease CentOS Linux release 7.2.1511 (Core) NAME="CentOS Linux" VERSION

Marklogic Audit Log

北城余情 提交于 2019-12-08 04:23:50
问题 I would see the below sample audit logging which MarkLogic provides Sample logging : 2012-03-26 10:55:53.735 event=amp-usage; function=http://marklogic.com/xdmp/admin:read-config-file; uri=/MarkLogic/admin.xqy; database=filesystem; success=true; user=admin; roles=admin; Can I customize this message by adding few more details highlighted below like this Sample logging : 2012-03-26 10:55:53.735 event=amp-usage; function=http://marklogic.com/xdmp/admin:read-config-file; uri=/MarkLogic/admin.xqy;

How to Replace multiple nodes of XML efficiently?

℡╲_俬逩灬. 提交于 2019-12-07 22:51:23
问题 I am trying to replace around 500 Nodes in a single go for a single document and i am having 5000+ document in my database. The code which i am using is related to this SO question i asked previously- Link Any suggestions to make my code efficient ? 回答1: The in-mem-update library should generally be avoided, especially when making numerous method calls for the same document. Since each method walks the entire node tree and generates a brand new document, it can be slow and expensive if you

How to create element range index in Marklogic?

孤者浪人 提交于 2019-12-07 17:09:22
问题 I have the following xml:- <?xml version="1.0" encoding="UTF-8"?> <patent-assignment> <assignment-record> <correspondent> <name>NORTH AMERICA INTERNATIONAL PATENT OFFIC</name> <address-1>P.O. BOX 506</address-1> <address-2>MERRIFIELD, VA 22116</address-2> </correspondent> </assignment-record> <patent-assignors> <patent-assignor> <name>TSAI, YU-WEN</name> <execution-date> <date>20050331</date> </execution-date> </patent-assignor> <patent-assignor> <name>HUANG, CHENG-I</name> <execution-date>

Marklogic Eclipse Setup

筅森魡賤 提交于 2019-12-07 16:57:27
问题 I have been trying to setup eclipse with marklogic to use it as my xquery editor. I am following this link as per Marklogic: http://developer.marklogic.com/learn/xqdt-setup. I did all the steps multiple times but I always get this error while run my default.xqy file: Execution failed: java.lang.IllegalStateException: No content-type header in part . Steps: Installed MLC, Installed Eclipse Helios 3.6.2 Configured XDBC server from admin console and use port as 8025. In Eclipse, URL used for XCC

How to add attribute to all particular children of a node

懵懂的女人 提交于 2019-12-07 11:52:24
问题 I have the following node in which I want to add attribute to all add nodes. <test> <add>x1</add> <c><add>x2</add></c> <b att1="x">x</b> </test> I tried functx:add-attributes($test, xs:QName('att1'), 1) It can add the attribute to the test node. But When I tried functx:add-attributes($test/add, xs:QName('att1'), 1) It added the attribute to the first add node but returns only add node with added attribute. Then when I tried with $test//add it throws error. When I tried for $add in $test//add

How to Replace multiple nodes of XML efficiently?

放肆的年华 提交于 2019-12-06 07:37:44
I am trying to replace around 500 Nodes in a single go for a single document and i am having 5000+ document in my database. The code which i am using is related to this SO question i asked previously- Link Any suggestions to make my code efficient ? The in-mem-update library should generally be avoided, especially when making numerous method calls for the same document. Since each method walks the entire node tree and generates a brand new document, it can be slow and expensive if you run against large documents and/or make a bunch of mem:* method calls on those docs. A better replacement

MarkLogic - CORS with REST API

蹲街弑〆低调 提交于 2019-12-06 06:20:35
I have a MarkLogic-based web application which pulls data from two sources, a document store and a triple store both hosted on my MarkLogic server. The app uses MarkLogic's built-in REST APIs to access these data stores. The document store's REST API is running on port 8003 and the triple store's REST API is on port 8007. The application is hosted on the modules database of the document store. Now, when I make a REST API call to pull triple data, I get an exception saying the 'access-control-allow-origin' header has not been set at the server side. I would like to know how I can set it up so I

How to use Group By in Marklogic?

风流意气都作罢 提交于 2019-12-06 03:41:50
问题 I want to use Group By in xquery. Can someone tell me please how to use Group By in Marklogic ? 回答1: Alternatively, you could call out to XSLT using xdmp:xslt-invoke or xdmp:xslt-eval . MarkLogic's XSLT processor supports XSLT 2.0, which includes full support for <xsl:for-each-group> . 回答2: The short answer is to use map:map . See http://docs.marklogic.com/map:map for documentation, and http://blakeley.com/blogofile/archives/560/ for a longer discussion. 回答3: xquery version "1.0-ml"; let $xml

How to get node without children in xQuery?

余生颓废 提交于 2019-12-06 03:21:02
问题 So I have two nodes of elements that I'm essentially trying to join. I want the top level node to stay the same but the child nodes to be replaced by those cross referenced. Given: <stuff> <item foo="foo" boo="1"/> <item foo="bar" boo="2" /> <item foo="baz" boo="3"/> <item foo="blah boo="4""/> </stuff> <list a="1" b="2"> <foo>bar</foo> <foo>baz</foo> </list> I want to loop through "list" and cross reference elements in "stuff" for this result: <list a="1" b="2"> <item foo="bar" boo="2" />