Questions tagged [marklogic-9]

Indicates questions specific to MarkLogic 9; use with the MarkLogic tag but not in place of.

Apply to questions that are specific to MarkLogic 9. This tag should be used in addition to the MarkLogic tag, which has many more followers. (If you have other other tags and have to choose between this one and MarkLogic, use the MarkLogic tag instead.)

472 questions
7
votes
1 answer

What does the operator "=>" in XQuery do?

When I look up XQuery examples i sometimes see the operator =>used. I tried searching for the meaning of it, but could not find anything. Since i am using MarkLogic, it is possible that it is only for MarkLogic, but i doubt that. From the examples i…
7
votes
1 answer

MarkLogic Java API deadlock detection

One of our application just suffered from some nasty deadlocks. I had quite a hard time recreating the problem because the deadlock (or stacktrace) did not show up immediately in my java application logs. To my surprise the marklogic java api…
Wagner Michael
  • 2,172
  • 1
  • 15
  • 29
6
votes
2 answers

Unable to find xdmp:plan result documentation

I am having a hard time finding details about what the output of xdmp:plan means. Having a simple query like this: xdmp:plan(cts:search(doc(), cts:element-value-query(xs:QName("description"), "some text"))) results in quite a long execution…
Wagner Michael
  • 2,172
  • 1
  • 15
  • 29
6
votes
1 answer

Receive XDMP-LOCKED error when no locks exist

I have a function that I wrote for generation of a sequential number. The function is as follows: declare function generate-instrument-Id( $cnt as xs:int? ) as xs:int { let $count := if( $cnt and $cnt > 0 ) then $cnt else 1 let $url :=…
Kemal Erdogan
  • 1,060
  • 1
  • 9
  • 19
4
votes
1 answer

Why are the results of my Optic API query not what I'm expecting when sorting and filtering?

What I'm trying to accomplish: I'm currently working on a xquery script to retrieve data of a marklogic database in form of a html table with the possibility to order and filter every column. The data is distributed in multiple directories as…
Abys
  • 41
  • 1
4
votes
1 answer

cts:values function not returning all the values for path reference

Let's assume I have three documents in MarkLogic as below, a 10 b 10 c
DevNinja
  • 1,459
  • 7
  • 10
4
votes
1 answer

cts:element-query vs cts:path-range-query performance

We are developing an enterprise application which store huge amount of data. In our application we forced the user to create multiple Path Range Indexes to make search faster. Earlier we were taking advantage of Path Range Indexes to make search…
DevNinja
  • 1,459
  • 7
  • 10
4
votes
1 answer

MarkLogic sql S1 collation showing wrong values

Lets have a rather simple TDE schema: testing a TDE view /test true
Wagner Michael
  • 2,172
  • 1
  • 15
  • 29
4
votes
1 answer

XDMP-PARENTLINK error on Fragment Root with xsi:noNamespaceSchemaLocation

I am trying to insert a document having a element which is a fragment root: xquery version "1.0-ml"; let $doc :=
Wagner Michael
  • 2,172
  • 1
  • 15
  • 29
4
votes
2 answers

Impact of increased queue size in Marklogic task server

what is the impact of increasing queue size from the default 100000 to 500000? Is there a rule of thumb to calculate the reasonable maximum number of queue size using the available resources like RAM, CPU core and anything else needed to be…
Arvind Kr
  • 177
  • 1
  • 5
4
votes
1 answer

Where is the "purge-journal-archiving" setting?

I am trying to setup incremental backups with journal archiving in MarkLogic, but I am having a hard time finding the setting "purge-journal-archiving" in the admin interface. In order to setup this up "purge-journal-archiving" needs to be set to…
nobleb
  • 119
  • 1
  • 7
4
votes
0 answers

MarkLogic DHF Harmonization Flow Failing

I'm trying to run an absolutely minimal harmonization flow to test out the Data Hub Framework (DHF), but the flow fails every time. After creating a new harmonization flow (default settings, tried with blank template and creating from entity…
TUrwin
  • 755
  • 1
  • 5
  • 9
4
votes
3 answers

How Do I Copy/Clone a Node in Marklogic XQuery

I am writing code that needs to return a modified version of an XML node, without changing the original node in the parent document. How can I copy/clone the node so that the original context will not be connected to/affected by it? I don't want…
Fateh Khalsa
  • 1,326
  • 1
  • 15
  • 19
3
votes
1 answer

Optimize retrieval of records when quering between multiple collections in marklogic

I am trying to query between 2 collections having a join condition between them, Say the 2 documents are: Collection 1: Company (1M documents) Company Documents: XYZ ABC . …
Manoj
  • 31
  • 3
3
votes
2 answers

How to find out the bad query that resulted into cluster restart?

How do I find the query possibly from query console? I know the time period. It is not available in history dashboard as in history dashboard. I can see long running queries for the last 10 minutes only. Perhaps if I could get the right URI…
bosari
  • 1,922
  • 1
  • 19
  • 38
1
2 3
31 32