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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
39 views

Using MarkLogic: Is there a way to get the ".find" behavior in bracket notation?

I'm trying to think of a way to store a string in a variable in order to use that string as a "path" to a JSON property so that I can update that property. The idea is that I have a base ...
David Steiner's user avatar
1 vote
0 answers
8 views

Taking marklogic full database backup using rest api

I am writing a shell in which I am trying to take database backup of the marklogic documents database as when this shell script runs. I am running the below but it gives me 404 Forbidden error whether ...
Aviator's user avatar
  • 553
0 votes
1 answer
13 views

MarkLogic XML Queries

We would like to add some scripts to our monitoring environment, for which we would need some help with the XML queries for Blockings Total number of connections Highest cpu consuming ML ingestion ...
Rajashekar Raju's user avatar
1 vote
1 answer
23 views

unfiltered wildcard cts:element-value-query give false results

I got many false search results from cts:element-value-query with "unfiltered" "whitespace-sensitive" "wildcarded" option. I want to know the explanation. (filtered CTS ...
XCELERENT - I want to dance's user avatar
1 vote
1 answer
23 views

How to store username in a session variable in marklogic sjs

We have an application running on Marklogic Server side Javascript. We want to store the username in a session variable throughout the logged in session. What is the best approach for this?
Udhayha Karthik's user avatar
1 vote
0 answers
40 views

Exception while copy database using MLCP copy command

I am trying to copy 1.5TB size database from one database to another database using MLCP But I am getting the exception Instance size r5.4xlarge MLCP Command mlcp.bat copy -mode local -input_host ...
Arunjay's user avatar
  • 21
2 votes
2 answers
72 views

Left join on doc-uri in MarkLogic Optic query

I try to do a join with fragmentColId to obtain the document uri, but in such a way that it won't drop the row if there is no actual fragment. I am using op:join-doc-uri, which works fine against TDEs,...
grtjn's user avatar
  • 20.3k
1 vote
1 answer
15 views

MarkLogic Corb SEVERE: received more than 1 results: 1

I have a MarkLogic CoRB job. It should returns 100 records. But it fails for SEVERE: received more than 1 results: 1. I really appreciate any help you can provide. uris.xqy: declare namespace lab = &...
thichxai's user avatar
  • 1,085
0 votes
1 answer
30 views

How to get text file size in MarkLogic

I need to get text file size in MarkLogic. I am reading log file where I want to know how much the log has grown on a particular date. Below is the code I have written: xquery version "1.0-ml&...
Dharmendra Kumar Singh's user avatar
1 vote
1 answer
14 views

How to add permissions on existing temporal document for the role in Marklogic?

The MarkLogic database with temporal functionality contains data with permissions assigned to specific roles. However, we now need to grant read access to a particular role for temporal documents. I ...
Akbar aLI's user avatar
  • 338
0 votes
1 answer
36 views

Why is this database trigger being executed twice by one commit?

I have developed a data processing engine in MarkLogic to handle data being exported into another VPC (virtual private cloud). I am not going to get into why we need this particular solution, I am ...
dj11223344's user avatar
1 vote
1 answer
22 views

Comparison of different ways to update Marklogic Content DB Index via ML Gradle

I have more than 50 different types of indexes set up in a marklogic content database. The database contains half a million XML documents. It will take more than 6 hours to rebuild all the indexes. If ...
XCELERENT - I want to dance's user avatar
1 vote
1 answer
21 views

How to restore the MarkLogic content database index setting from the db backup

I use MarkLogic admin interface to back and restore the content database. It seems that I could only restore the document content to a newly created database from a db backup file. Somehow the index ...
XCELERENT - I want to dance's user avatar
0 votes
2 answers
58 views

MarkLogic: Find documents where at least one parent element does not have a particular child

Using the built-in MarkLogic cts functions, I'd like to be able to write a query which can find a document like the following -- where exists at least 1 element that does not have a <child1> ...
DarthDell's user avatar
1 vote
0 answers
16 views

MarkLogic REST API for Forest restore

Is there a MarkLogic REST API for forest-restore? xdmp:forest-restore(xdmp:forest("My-Forest"),"/backups/Data/Forests/Documents")
CJ Chang's user avatar
  • 325
2 votes
2 answers
28 views

Output content-type and other headrs in a REST Extension GET written in XQuery

I put a question about this but I associate it with a filter document problem. It isn't, I simplify the sample to maximum and I have always the same content-type and more. The result is always the ...
Marc Messéant's user avatar
1 vote
1 answer
27 views

marklogic rest api extension output content-type

I try to write a GET service for media. When I upload the media file, I use xdmp:document-filter to store in the property of the file the meta information like the content-type. In the GET, I read in ...
Marc Messéant's user avatar
1 vote
1 answer
22 views

Add new key-value pair to JSON created using object-node constructor permannently

let $outputJson := object-node { "status": "success", "categories": "cat" } return xdmp:to-json(map:with(xdmp:from-json($outputJson), "str"...
Abid Hussain's user avatar
0 votes
1 answer
37 views

Different element text value returned during XML to JSON conversion Xquery Marklogic

We are working with the sample xml below and have a requirement to return it as JSON response. So I'm using json:transform-to-json() function to do the XML to JSON conversion. In the sample below , ...
Antony's user avatar
  • 183
1 vote
1 answer
18 views

mlcp export with document_selector

I have the following XQuery command to retrive documents on the qconsole declare namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"; (/record[@xsi:noNamespaceSchemaLocation eq 'http:...
CJ Chang's user avatar
  • 325
1 vote
1 answer
105 views

How do you access Markmail

This is probably off-topic for SO, but Markmail has yielded nothing but "refused to connect" for more than a week, isitdown shows a general outage, and Marklogic tech support has not ...
Dave's user avatar
  • 3,854
1 vote
1 answer
41 views

Can xdmp:pdf-convert perform optical character recognition (OCR)?

Looking at the options in the documentation for xdmp:pdf-convert, it seems like MarkLogic can perform OCR but my testing of it has not been successful. The ignore-text option in the documentation ...
nobleb's user avatar
  • 119
1 vote
1 answer
17 views

Tried to run Corb in windows machine

I tried running sample corb example by following Corb2 documentation. I have MarkLogic 10 in my machine and for that I had downloaded the following jars: marklogic-corb-2.3.2.jar marklogic-xcc-10.0....
Jayabalan's user avatar
  • 361
-2 votes
1 answer
23 views

How can I know the temporal document ingestion date

I want to know the temporal document ingestion date. Is there any function to achieve this?
Dharmendra Kumar Singh's user avatar
0 votes
0 answers
34 views

How to resolve 403 forbidden error while launching MarkLogic in windows?

403 Forbidden SEC-NOADMIN: (err:FOER0000) User does not have admin-ui privilege. in /MarkLogic/security.xqy, at 7110:7, in sec:check-admin() [1.0-ml] in /MarkLogic/Admin/lib/status-check.xqy, at 24:1,...
user22317944's user avatar
0 votes
1 answer
21 views

Is it possible to create TDE View in XML metadata

I am adding set of metadata to XML and i want to expose this data to Power BI through a View (Basically creating a TDE).Is it possible to create TDE View in XML metadata
ramz123's user avatar
  • 199
1 vote
0 answers
38 views

How to Call a Data Service using ExPath HTTP Client from third-part application?

Where to find documentation on how to call a Data Service deployed on Marklogic from an XQuery script using ExPath HTTP Client library ? The only documentation I could find describes how to call it ...
S. Sire's user avatar
  • 11
0 votes
1 answer
28 views

How to fix unability to save ".eps" file to marklogic database because XDMP-JSONDOC error is thrown?

I am unable to save file with ".eps" extension to MarkLogic database. Marklogic REST API throws server error with following message: "XDMP-JSONDOC: Document is not JSON". What is ...
brztss's user avatar
  • 27
1 vote
1 answer
42 views

Solution to sequence conversion

I am execution below SPARQL query into qconsole, this query executed properly and returned a solution with 2346 items, it took 5 ms. xquery version "1.0-ml"; import module namespace sem = &...
DevNinja's user avatar
  • 1,459
0 votes
0 answers
13 views

How to clean up mlcp archive data from local

I have a strange problem that I could not permanently free up ML archive files from my local laptop. Those archive files are organized in different folders and are generated with MLCP export archive ...
XCELERENT - I want to dance's user avatar
2 votes
1 answer
47 views

Marklogic Optic lib op:sql-condition not working with multiple LIKE Conditions

I am trying to filter the documents based on this condition using Xquery optic lib in marklogic. But op:sql-condition doesn't seem to work as expected. op:sql-condition("Employee.employeeName ...
Jagruti Padhiyar's user avatar
0 votes
0 answers
15 views

How to share Entity definitions across multiple MarkLogic Entity Services

I am using MarkLogics Entity Services to represent data. I am writing these definitions in JSON. Across the many Entity Services in the repository there is quite a bit or repeated code. For example a ...
Ilan Rosenbaum's user avatar
2 votes
1 answer
47 views

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("...
DevNinja's user avatar
  • 1,459
1 vote
0 answers
20 views

MarkLogic not starting on AWS, failing with DynamoDB error

I have a 3 node MarkLogic cluster using CloudFormation Template. The setup ran fine with the provided configuration but the MarkLogic server is not coming up. I checked by logging into the EC2 ...
JayantKYadav's user avatar
1 vote
1 answer
28 views

xdmp:transaction-locks() causing timeout in cluster when transaction has no locks

ML Server Version: 10.0-9.5 I am using xdmp:transaction-locks to be able count and view the locks that a transaction has. This function is running differently in our clustered environments (more than ...
nobleb's user avatar
  • 119
1 vote
1 answer
16 views

cts:uris with namespace binding

I have multiple XML documents stored in MarkLogic, my requirement is to get the URIs of the document when there is a specific element in it, all XMLs are stored with namespace in it. sample XML from ...
DevNinja's user avatar
  • 1,459
0 votes
0 answers
35 views

Getting unwanted rows as result in SPARQL query

I am executing the SPARQL query to get the list of productid. Query: SELECT ?productid FROM <product> WHERE { ?productid ?p ?o } this query was executed successfully without any error but the ...
DevNinja's user avatar
  • 1,459
1 vote
2 answers
29 views

How to get subject value from cts:triples output

I am executing below query to get the list of triples from "testCollection" where predicate is "testName". cts:triples((), sem:iri("testName"), (), (), (), cts:and-query(...
DevNinja's user avatar
  • 1,459
0 votes
0 answers
39 views

Any Code scanning tool for Xquery language

Is there any Code scanning tool available for XQuery language which can be integrated with teamcity. We are currently using Checkmarx but it do not support XQuery language.
Dixit Singla's user avatar
  • 2,540
0 votes
0 answers
43 views

Encountering difficulties while migrating the Marklogic database from a Windows environment to Red Hat Linux

I am attempting to transfer data between a Windows-based MarkLogic system to Red Hat Linux-based MarkLogic system using the approaches mentioned below, but I have encountered the following issues. ...
Arunjay's user avatar
  • 21
0 votes
0 answers
32 views

How to identify the document in MarkLogic having special characters

How to identify the documents having special characters in Marklogic. Documents are in UTF-8 format
ramz123's user avatar
  • 199
1 vote
1 answer
38 views

Is it possible to restore database from S3 bucket in Marklogic

We are running Marklogic on a non AWS instance. One of our data-base backup is in S3 bucket. Is it possible to directly restore from the S3 bucket. Currently we are downloading the backup and then ...
Dixit Singla's user avatar
  • 2,540
0 votes
2 answers
50 views

Optimized way to join two collections in Marklogic and get the result

Example: xquery version "1.0-ml"; for $Schema_Student in collection ("Student"),  $Schema_Staff in collection ("Staff") where ($Schema_Student/Student/Pincode = $...
Manjunath's user avatar
0 votes
0 answers
44 views

SSL Enabled MarkLogic DB returns empty result for query execution

I have Marklogic server with SSL enabled. Executing the SPARQL query with Java Client API will return empty result. I mean the response body is empty having empty bindings. The same query run with ...
user092's user avatar
  • 437
1 vote
1 answer
29 views

How to set document quality while ingesting document into MarkLogic through PutMarkLogic NiFi processor?

I'm using NiFi 1.21.0 and nifi-marklogic-nar-1.9.1.6. I have been using PutMarkLogic 1.9.1.6 processor to ingest documents to MarkLogic-db for more than 2 years. Recently witnessed that the processor ...
P K's user avatar
  • 177
0 votes
1 answer
21 views

How can I exclude the backup mimetypes.xml file from my MarkLogic backups?

How can i stop the backup mimetypes.xml file when taking the backups of marklogic database i dont find any option in the admin console to disable this I tried all the option in the admin console i ...
sandeep's user avatar
  • 11
0 votes
0 answers
48 views

Timeout issue if I use the azure gateway (loadbalancer) to mlcp import from an archive

I am using the ML Azure Enterprise v11.0.2 to set up a 3-node cluster. I would like to confirm the behaviour on how to restore a db archive via mlcp. It seems it is more reliable to use the ...
XCELERENT - I want to dance's user avatar
0 votes
1 answer
39 views

How to restore a ML content db from single node to a 3-node-cluster

I have a single-node ML dev environment. I already took a db backup. My objective is to restore that db backup to a 3-node ML Cluster for qa. In order to make the db set up the same, I have already ...
XCELERENT - I want to dance's user avatar
1 vote
1 answer
81 views

How can I migrate a Marklogic database from a Windows-based server to a Linux-based server?

Is it possible to migrate approximately 2TB of data from a Windows-based MarkLogic database to a Linux-based server, considering the platform change from Windows to Linux? If so, could you please ...
Arunjay's user avatar
  • 21
1 vote
1 answer
29 views

MarkLogic relevance scoring calculations using logtfidf method

I'm trying to find how MarkLogic calculates relevancy score. MarkLogic support pointed me to a knowledge base article (link in reference) where I saw the below formula (natural log). log(1/term ...
P K's user avatar
  • 177

1
2 3 4 5
77