marklogic-9

Managed document not working in MarkLogic 10 after xdmp:document-insert

守給你的承諾、 提交于 2019-12-11 15:52:33
问题 First time manage document using dls:document-insert-and-manage Update the same document using xdmp:document-insert Document get lost from the dls latest version collection cts:search(/scopedIntervention/id , dls:documents-query()) First time manage document <scopedIntervention> <id>someId12345</id> <scopedInterventionName> First Name </scopedInterventionName> <forTestOnly> true </forTestOnly> <inactive> true </inactive> </scopedIntervention>)``` **Document inserted with versioning** Verify

How data is loaded and managed by a MarkLogic cluster

China☆狼群 提交于 2019-12-11 06:15:00
问题 I would like to enquire on how data is loaded into this clusters, do I load data separately into each node manually? Or is marklogic able to manage and transfer data among the cluster itself so all I need to do is to load data into a single node? For marklogic to understand and balanced the data between certain forests/databases is there a certain requirement? Such as a need for the forest and database to share the same name or the XDBC server to share the same port number? Finally, I would

In TDE Marklogic how to escape null value triples?

試著忘記壹切 提交于 2019-12-11 04:31:14
问题 <template xmlns="http://marklogic.com/xdmp/tde"> <context>/test</context> <vars> <var> <name>subprefix</name> <val>"http://www.test.com/resource/test/"</val> </var> <var> <name>objprefix</name> <val>"http://www.test.com/resource/test/"</val> </var> </vars> <triples> <triple> <subject> <val>sem:iri($subprefix || ElemenetName)</val> <invalid-values>ignore</invalid-values> </subject> <predicate> <val>sem:iri('is')</val> </predicate> <object> <val>sem:iri($objprefix || FullName)</val> <invalid

MarkLogic 9 sjs trigger not able to acces post-commit() document data

我是研究僧i 提交于 2019-12-11 02:06:55
问题 I moved to MarkLogic 9.0.2 recently, now I am moving all my trigger logic from xqy to sjs. Here my issue, I have a trigger in sjs, it is created in xqy like this: xquery version "1.0-ml"; import module namespace trgr="http://marklogic.com/xdmp/triggers" at "/MarkLogic/triggers.xqy"; xdmp:log("TRGR: Installing tp-firstTimeSeen"), trgr:create-trigger("tp-01-firstTimeSeen", "Trigger to Alert First time a device is seen by a tp-sensor ", trgr:trigger-data-event( trgr:collection-scope("tresspasser

Timeout for a loop in XQuery MarkLogic

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 12:19:35
I have a big collection of about 1 million documents, in MarkLogic (version 9), with below structure: <File> <Id></Id> <ModifiedAt></ModifiedAt> <Author></Author> <Title></Title> </File> And I need to iterate through entire collection and to replace space from ModifiedAt with T for all documents Example of document: <File> <Id>12121</Id> <ModifiedAt>2011-06-08 14:29:29.000</ModifiedAt> <Author>Test</Author> <Title>Test</Title> </File> Field ModifiedAt should become: 2011-06-08T14:29:29.000 The code looks like: for $doc in fn:collection('File') return xdmp:node-replace($doc/File/ModifiedAt,

Timeout for a loop in XQuery MarkLogic

萝らか妹 提交于 2019-12-01 10:33:41
问题 I have a big collection of about 1 million documents, in MarkLogic (version 9), with below structure: <File> <Id></Id> <ModifiedAt></ModifiedAt> <Author></Author> <Title></Title> </File> And I need to iterate through entire collection and to replace space from ModifiedAt with T for all documents Example of document: <File> <Id>12121</Id> <ModifiedAt>2011-06-08 14:29:29.000</ModifiedAt> <Author>Test</Author> <Title>Test</Title> </File> Field ModifiedAt should become: 2011-06-08T14:29:29.000