Questions tagged [marklogic]

MarkLogic Server is a multi-model database. Classified as a NoSQL database, MarkLogic stores, manages, and provides built-in search for JSON and XML documents and semantic data (RDF triples). Users can also create relational views on top of the document model—all with a unified, consistent back-end.

MarkLogic Server is a multi-model database. Classified as a NoSQL database, MarkLogic stores, manages, and provides built-in search for JSON and XML documents and semantic data (RDF triples). Users can also create relational views on top of the document model—all with a unified, consistent back-end. MarkLogic’s key features include ingesting data as is from any data source, indexing it immediately for real-time querying, providing data consistency with ACID transactions, maintaining government-grade security, and scaling out with a clustered architecture. MarkLogic has a standard REST API, Node.js and Java Client APIs, and a number of other extensions and open source tools.

MarkLogic supports server-side JavaScript, XQuery and SPARQL, and has a number of extensions that enable:

• HTTP request/response

• Built-in full-text search

• Database operations, including ACID transactions

• High Availability and Disaster Recovery

• Scalability and elasticity

• Tiered Storage

• Advanced, enterprise-grade security

• Semantics

• Additional MarkLogic-specific functionality

You can learn more at the MarkLogic Developer Site, which provides documentation, downloads, tutorials, and more.

You can also register for free instructor-led and online training provided by MarkLogic University.


###Related tags :

3809 questions
5
votes
5 answers

How do you convert a string to a node in XQuery?

I would like to convert a string into a node. I have a method that is defined to take a node, but the value I have is a string (it is hard coded). How do I turn that string into a node? So, given an XQuery method: define function foo($bar as…
Sixty4Bit
  • 12,852
  • 13
  • 48
  • 62
5
votes
4 answers

How to use Group By in Marklogic?

I want to use Group By in xquery. Can someone tell me please how to use Group By in Marklogic ?
Puneet Pant
  • 918
  • 12
  • 37
5
votes
2 answers

How do I create a database in marklogic from a script

We have started a new project that uses marklogic to store documents. To get the app running, we need to create a database, a forest, new users and setup an XDBC server. It is quite easy to do it from the web admin tool provided by Marklogic, but to…
uttamkini
  • 508
  • 5
  • 12
4
votes
2 answers

Can ml-gradle deploy a query options file to an app server?

I have a MarkLogic cluster configured with DHF 5 and ml-gradle. I have multiple HTTP app servers and a couple of query options file. When I do an mlDeploy, the query options files are deployed to the final app server, but not the others. Is there a…
eaolson
  • 14,717
  • 7
  • 43
  • 58
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

mlcp is not loading document when executed through gradle

Hi I am trying to load xml document into marklogic using mlcpTask class from gradle. I am currently using - Marklogic version 10.0-1 - Gradle 6.5 - Java 14.0.1 Build.gradle file as below: plugins { id "com.marklogic.ml-gradle" version…
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

Trouble with Element Level Security

We have a protected path on /record/historical, no namespace, with one role having read permission and "admin" role given read, update, insert permissions. We have a user, "deployment", with the "admin" role. When logged into the query console as…
Alma Pellett
  • 307
  • 2
  • 8
4
votes
2 answers

MarkLogic TDE Xpath values from JSON string array

I want to build a a tde with a row with an id and each value of an array in the original document. I get a row for each element but the values are null and ignored. Seems if the context is set to anything not an array the ../uri works but never when…
Lee Arnould
  • 123
  • 9
4
votes
1 answer

Convert JSON-Patch to MarkLogic JSON patch specification?

The JSON patch specification used by MarkLogic PATCH API is remarkably similar to the JSON-Path standard (RFC 6902) but not exactly the same. For example, to add a node to the following document: { "parent": { "child1": "c1-value", …
Fan Li
  • 1,057
  • 7
  • 11
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 …
4
votes
4 answers

Path expression in MarkLogic cts.search

I have the impression that the XQuery and the Server-side JavaScript APIs in MarkLogic are largely equivalent. But there seems to be a big difference in cts:search vs cts.search. In cts:search, I am able to specify an element to be searched and…
Fan Li
  • 1,057
  • 7
  • 11
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