marklogic

regarding installation of MarkLogic server

血红的双手。 提交于 2019-12-11 02:38:13
问题 After installing the MarkLogic server...and make all security changes. But after reloading the page authentication was popped out. I gave all my credentials but it still popping out and the server page is loaded. Please tell me how to resolve this and also tell me how to change the password of server? 回答1: As part of the install, you provide credentials for an initial admin yourself. Enter those. Don't enter your own OS credentials. Once you regained access to the Admin ui, you can use that

Is there any tool to view/edit/delete document of Marklogic

谁说胖子不能爱 提交于 2019-12-11 02:37:20
问题 Is there any tool to view/edit/delete document of Marklogic, like Mongo Management Studio for MongoDb? 回答1: Built into MarkLogic is support for WebDav. You can create a WebDav App Server in the admin console and then any WebDav client can access documents. https://docs.marklogic.com/guide/admin/webdav There are limits to what the webdav protocol supports but this does give basic integration at the document level. The MarkLogic extension to xmlsh includes a Java GUI providing a basic tree

SPARQL queries causing XDMP-MEMCANCELED

谁都会走 提交于 2019-12-11 02:33:28
问题 We are performing a series of different SPARQL queries on a database containing ~5 million triples. Our queries often cause a XDMP-MEMCANCELED-error though not consistently, they mostly return a correct result within a few seconds or less. Some queries occationally seems to hang and cause the server to run at 100% CPU until the query times out. We have tried increasing what memory-related settings we could find. This query runs fine on other triple stores/engines. We are running MarkLogic 8.0

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

How to get total number of documents in Marklogic database?

好久不见. 提交于 2019-12-11 01:00:40
问题 I have around 20 lacs documents in Marklogic Database. I want the total number of documents in my search application for pagination. For getting the totals I am using xdmp:estimate(cts:search(doc(), $query)) where $query is the combination of various queries combined in cts:and-query . But I am not getting the correct total. When $query is blank it shows much higher count than the total number of documents in the database. When I use xdmp:estimate(doc()) it shows me the correct total but it

Marklogic : Query response time is very high

限于喜欢 提交于 2019-12-11 00:28:25
问题 I have around 15000 records in xml format in a uri, say:" documents/products/specs/*.xml ". Each xml is of around 25 Kilo Bytes in size. I connected to this marklogic server uisng a remote Apache Tomcat Server that has a XCC client (Java), which tries to execute a AdHocQuery which resembles something like this: let $a := cts:uri-match('documents/products/specs/*.xml') for $xml in $a return fn:doc($a) (for loop is implemented in java). This works fine. But for records with larger count, say

Order by an element while fetching documents from a directory

 ̄綄美尐妖づ 提交于 2019-12-10 23:48:47
问题 I have to fetch all documents from a directory and am using below query to do same. Now i need to return the result which is sorted based on the effectiveDate element.Can we use order by along with this code let $news :=xdmp:directory("/news/","1") for $d in $news return $d -- Result ----- <?xml version="1.0" encoding="UTF-8"?> <NewsEntity xmlns="http://jnj.com/news"> <uuid xmlns="">868e8a3a-058d-4b2d-8d69-0696f75ec97f</uuid> <headLine>HeadLine 4</headLine> <contributor>User 4</contributor>

Marklogic REST API search for latest document version

十年热恋 提交于 2019-12-10 22:08:43
问题 We need to restrict a MarkLogic search to the latest version of managed documents, using Marklogic's REST api. We're using MarkLogic 6. Using straight xquery, you can use dls:documents-query() as an additional-query option (see Is there any way to restrict marklogic search on specific version of the document). But the REST api requires XML, not arbitrary xquery. You can turn ordinary cts queries into XML easily enough (execute <some-element>{cts:word-query("hello world")}</some-element> in

Exception while copying data using MLCP

老子叫甜甜 提交于 2019-12-10 20:48:03
问题 I am trying to copy 1 million documents from one database to another database using MLCP but I am getting following Exception. 19/08/30 11:48:08 ERROR contentpump.DatabaseContentReader: RuntimeException reading /integration/test/88398921012548 :java.lang.RuntimeException: Could not buffer value as string I am not sure about the reason of this exception. Please guide me to understand the reason. MLCP with all the options that i used mlcp copy -mode local -input_host 192.168.1.46 -input_port

Does MarkLogic Fully Support XML Schema 1.1?

允我心安 提交于 2019-12-10 19:03:38
问题 Specifically, multiple substitution groups and XPath asserts in complexTypes? 回答1: The answer is no, in the current version we do not support Schema 1.1. If you have a use case please post to the marklogic general development group for consideration. Thanks. http://developer.marklogic.com/discuss -David 来源: https://stackoverflow.com/questions/18173016/does-marklogic-fully-support-xml-schema-1-1