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
1
vote
1 answer

Validating the backuped files in s3 from marklogic database

How can I validate the files inside the S3 bucket after taking backup from MarkLogic database besides this XQuery: xquery version "1.0-ml"; xdmp:database-backup-status((), xdmp:hosts()) which XQuery will validate it from MarkLogic, but how can I…
sandeep
  • 11
  • 2
1
vote
1 answer

MarkLogic seems not to follow the RDF specification

Write the following RDF data into MarkLogic: @prefix xsd: . 10 . "10"^^xsd:double . Then execute the following query: SELECT * WHERE { ?s ?p 10. } The…
uniqueR
  • 51
  • 1
1
vote
1 answer

Convert child nodes into a single string using XQuery in ML 10

We have an application whose backend ML response format is JSON and we have a element with both text and nodes as below. Header <bold>abc</bold> Now, while converting the above node to JSON, we get the output as "Title": {"bold":…
Antony
  • 183
  • 8
1
vote
1 answer

How does MarkLogic Rewriter uri pattern matching actually work?

I'm looking at this example from: https://docs.marklogic.com/10.0/rest:matching-request Specifically, this code: xquery version "1.0-ml"; import module namespace rest="http://marklogic.com/appservices/rest" at…
1
vote
3 answers

XQuery: Separate a sequence into multiple ones

I want to seperate a sequence into multiple ones. So e.g. I have this sequence let $allNumbers := (1,2,3,4,5) And I want as an result one sequence with all number less than 3 and one sequence with equal or more than 3. let $lessThanThree :=…
1
vote
0 answers

Send an email with Multipart (csv attachment and HTML) in MarkLogic

I would like to send an email with multipart using MarkLogic. Multipart contains csv attachment and HTML.I am able to attach CSV file but not able to show HTML content in multipart. In below code HTML content are being processed as an attachment…
swat
  • 71
  • 7
1
vote
0 answers

Properties fragment query has no effect

I am using the Node.js API provided by MarkLogic to read values from the URI lexicon using the following code const marklogic = require("marklogic"); const dbConn = require("../config/ml-connections"); const dbRead =…
1
vote
0 answers

Backup scheduled by 2 weekly once but happens on every week in Marklogic

I have scheduled the backup by 2 weekly once but it's happening every week, Here are the details: backup enabled true backup directory /backup/testdb backup type weekly backup period 2 backup days monday backup start time 10:00 pm max…
Jayabalan
  • 361
  • 1
  • 7
1
vote
1 answer

How we can get forest name and data directory in MarkLogic using Xquery

I am trying to get the list of forests and its data directory in a particular host/node can anyone help me with a query?
Jayabalan
  • 361
  • 1
  • 7
1
vote
1 answer

Use HTTPS to connect to MarkLogic host from ml-gradle

How do I force ml-gradle to use HTTPS instead of HTTP to connect to a MarkLogic host? I have something like following in my gradle.properties file: mlHost=abc.xyz.aws.private mlDeploy task calls the host using HTTP like…
1
vote
1 answer

Custom sorting issue in MarkLogic?

xquery version "1.0-ml"; declare function local:sortit(){ for $i in ('a','e','f','b','d','c') order by $i return element Result{ element N{1}, element File{$i} } }; local:sortit() the above code is sample, I need the data…
anuj_gupta
  • 131
  • 4
1
vote
1 answer

How to put dynamic date filter in TDE?

In "context" how to use date function? I want to keep the triples only for last 10 days of the doc ingested in ML.