Questions tagged [marklogic-10]

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

MarkLogic 10 is the latest release of MarkLogic's NoSQL document database.

198 questions
4
votes
1 answer

documents-query - how is dls:documents-query() in MarkLogic 10 different from MarkLogic 7?

I have upgraded from ML7 to ML10 and restored the database as well, but dls:documents-query() returns cts:collection-query("http://marklogic.com/collections/dls/latest-version") on ML10 and …
3
votes
2 answers

Performing an op:join-inner with op:from-lexicons not working as expected with Optic API

I have the following optic query using the op:from-lexicons access plan: op:from-lexicons(( map:map() => map:with("lexiconUuid", cts:element-reference(xs:QName("lexiconUuid"))) => map:with("elementInDocumentToFilter",…
nobleb
  • 119
  • 1
  • 7
3
votes
3 answers

Expanded tree cache full when performing many queries

I am implementing a batch processing that needs to execute a high number of search queries in MarkLogic to find the documents to be modified. The query which I am using looks like this: cts:search(/ch:haufe-document, cts:and-query(( …
Hapeka
  • 80
  • 5
3
votes
1 answer

Search documents with unfiltered option whose value starting with string containing special character?

I am looking for getting Estimate of documents whose "key" property value is starting with a string which is containing special character "/" let query = cts.andQuery([ cts.jsonPropertyWordQuery("Key", "IBD/info/*", ["lang=en"],1), …
mpuram
  • 149
  • 9
3
votes
2 answers

Read-Write excel file in to MarkLogic

We have a requirement to write and read the excel file to and from the MarkLogic but we are getting exception while reading excel file from MarkLogic, We want to pass the retrieved file to the XSSFWorkbook.java given by apache.poi. I have tried the…
DevNinja
  • 1,459
  • 7
  • 10
3
votes
0 answers

Clear document properties as soon as document is unlocked

We are acquiring a document lock by using xdmp:lock-acquire also we are setting properties like lockedBy, status, timeout on the locked document. we made configuration changes in MarkLogic to release the lock once the time out is done by setting…
DevNinja
  • 1,459
  • 7
  • 10
3
votes
1 answer

what is the difference between cts, fn and xdmp functions in Marklogic?

I am beginner in Marklogic learning. I tried checking over the internet the difference but i don't see anything. Sorry if it's a silly question. what actually is the difference?
user2708013
  • 399
  • 2
  • 11
3
votes
1 answer

How to authenticate Marklogic admin interface (8001) via Azure AD

I am using MarkLogic server 10. The admin interface has authentication setup as "Digest". So, when I open https://localhost:8001, it prompts for user id/password and opens the admin interface. I need to do this authentication using Azure AD. So, I…
MarsTelnet
  • 471
  • 7
  • 18
2
votes
1 answer

CTS Range Query vs SPARQL Query Performance

I can see the difference in time taken by CTS Range vs SPARQL Query. CTS Range Query - took 0.8ms to get the result, required field indexes are created to make filed query work. cts:field-values("productid", (), (), cts:and-query( ( …
DevNinja
  • 1,459
  • 7
  • 10
2
votes
1 answer

Where I can find Marklogic configuration file in Windows

I need to edit Marklogic config file in my local Windows environment. I want to edit the time zone option in the marklogic.conf file in order for MarkLogic to operate with a different time zone setting than the OS. I know the location for Unix…
Jayabalan
  • 361
  • 1
  • 7
2
votes
1 answer

Choose on which database to eval() on MarkLogic Node Client API

I am using the MarkLogic Node Client API, and would like to DatabaseClient.eval() some code on every database on the cluster. But as far as I can tell (and unlike xdmp.eval() or /v1/eval) it is not possible to set the content database against which…
Florent Georges
  • 2,190
  • 1
  • 15
  • 24
2
votes
1 answer

MarkLogic Optic API, existsJoin with data selection using empty qualifier resulting in 'Ambiguous column reference' error

I came across following situation - I use Optic API, I have first view filtered by second one using existsJoin to get only rowset I want. Then I need to include property which was used in op.on definition (the same column exists in both views) in…
2
votes
1 answer

MarkLogic REST Resources API - patch multiple documents using only one POST request

I have a question regarding documents patching in MarkLogic databse using REST API. I have a service written in .NET Core and I use MarkLogic as my store for the data. In my case I must patch thousands of documents and if it is possible, I don't…
2
votes
3 answers

Need to return months in-between dates in XQuery

I'm looking for return months in-between dates, Start date: 2022-03-17 End Date: 2022-06-17 I am able to get days through the below query. days-from-duration(xs:date('2022-03-17') - xs:date('2022-06-17')) But my expected output is:…
Jayabalan
  • 361
  • 1
  • 7
2
votes
1 answer

Marklogic - Return the HTTP response without waiting for spawn process to get completed

I have created a REST API that receives a HTTP POST request(array of json requests) from UI. This would trigger a Xquery code which would spawn the requests to execute some functionalities and it may 10-30 mins to get completed. If the request gets…
Antony
  • 183
  • 8
1
2 3
13 14