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
3
votes
1 answer

Replace Deprecated KeyValueQueryDefinition in MarkLogic to use Query By Example

I have a document saved in MarkLogic like below : Vikram password Vikram Swaminathan
Vikram
  • 635
  • 1
  • 9
  • 29
3
votes
1 answer

Case insensitive search in Path Range Query for Marklogic

How can we do case insensitive search for path range queries? I want to make case insensitive search for path: /pathSyntax = (case insensitive value of $Type) Sample Query Format for Path range search , I need to make this path range query search…
user1575601
  • 397
  • 1
  • 7
  • 20
3
votes
1 answer

Searching Binary files in marklogic

Is there any method to search content of binary files like PPT, PDF etc other than converting it into X HTML format using xdmp:document-filter() function and searching on it ?
3
votes
2 answers

Can't create new tab in Query Console (in MarkLogic)

I'm just learning to use MarkLogic, going thru the tutorials, etc. I'm getting an error message I don't understand. When I'm in the Query Console and need to create a new tab, I click the plus sign at the right end of the row of existing tabs, and…
3
votes
2 answers

MarkLogic 9 cts.parse not parsing queries correctly

I am working on a web-based search application using MarkLogic 9. I have a query building interface that allows users to enter strings into textboxes that correspond to particular JSON properties of the documents in the db. The idea was that the…
Alec Daling
  • 348
  • 2
  • 13
2
votes
0 answers

fn.subsequence work different in optic API

In my program I need to join 2 and more collections by some json properties. When I run only subsequence method it return array of json objects but when I use it in op.fromLiterals in my optic plan it returns a list of document uris. I can't use the…
2
votes
0 answers

Failed to collect dependencies at com.marklogic-datahub-jar:4.3.1

Failed to read artifact descriptor for com.marklogic:marklogic-data-hub:jar:4.3.1: Could not transfer artifact com.fasterxml.jackson:jackson-bom:pom:2.9.7 from/to jcenter (http://jcenter.bintray.com) I am trying to build a project on STS and while…
Akash
  • 21
  • 1
2
votes
1 answer

How to troubleshoot XDMP-RANGEINDEX error?

We are running reindex on one of our database which is 400 GB approx. and we are seeing below debug log entries :- 2021-01-24 16:13:55.705 Debug: IndexerEnv::putRangeIndex: XDMP-RANGEINDEX: Range index error: double "": XDMP-LEXVAL: Invalid lexical…
SinghVK
  • 313
  • 2
  • 12
2
votes
2 answers

Problem in locking a document using xdmp:lock-acquire() function

We have tried all the options for the lock method, the document is locked, but still, another user can able to update the document even though the lock is not yet released. xdmp:lock-acquire("/inventory/hassan", "exclusive", "0", "This lock is…
DevNinja
  • 1,459
  • 7
  • 10
2
votes
1 answer

Exception while adding Properties Metadata

we are using the below code to add Properties Metadata to a document in MarkLogic but we are getting javax.xml.bind.DatatypeConverter exception. DocumentMetadataHandle documentMetadataHandle = new…
DevNinja
  • 1,459
  • 7
  • 10
2
votes
0 answers

How to enable ONTOLOGICAL search in Marklogic?

How to enable the ontological search in Marklogic? Eg: User types "Probable". Then result set should have both "Probable" and "likely". Thanks!
KumarG
  • 61
  • 1
2
votes
2 answers

how to insert node in JSON doc in Marklogic using xdmp:node-insert

I want to insert node in a JSON document like this: { "fileName": "l", "user_id": "test", "requestId": "1232", "feedbackType": "cpd_mah" } Running this code: let $old := $doc/filename return xdmp:node-insert-after($old, object-node{"isSaved":…
KumarG
  • 61
  • 1
2
votes
2 answers

MarkLogic - XDMP-NEWSTAMP exception

We are using MarkLogic-8(with three nodes - two forests on each) and have been facing the XDMP-NEWSTAMP exception frequently. We have the default merge policy and do not use any point in time queries. But we do use xdmp:eval and…
Ashish Patil
  • 150
  • 9
2
votes
1 answer

Is there a way to quickly clear the server error log in MarkLogic?

I very often use the Errorlog for debugging when i am working on a XQuery in MarkLogic. The issue is that over a day the log can become quite full and it is annoying to always scroll to the bottom of the log. Is there maybe a way to quickly clear…
2
votes
1 answer

How can i sort a cts query by joining values in MarkLogic?

When i am using a cts:search in XQuery i can sort quite easily by accessing the elements of the document. cts:search( fn:doc(), cts:directory-query("/textdocuments/"), cts:index-order(cts:element-reference(xs:QName("title")),…
1 2
3
31 32