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
1
vote
2 answers

How to get the data required using Marklogic XQuery cts:search

So, I faced an interview recently with a well known company on Marklogic. He has asked me a question which I couldn't answer. There is an XML example data as below shown. He asked me how can you get only employee id whose zipcode is 12345 and state…
user2708013
  • 399
  • 2
  • 11
1
vote
1 answer

How to combine cts:search searchable-expression and cts:not-query?

I have been using cts:search with searchable-expression to extract specific elements from XML documents. For example: Document: cinnamon, peppermint
Fan Li
  • 1,057
  • 7
  • 11
1
vote
2 answers

Minus function in Optic Query

I have requirement to do minus in one of the use case but in MarkLogic I am not able to use minus function. Is there any alternate way to do this? select table1.value1 from table1 where table1.date = '2020-11-27' minus select table1.value1 from…
ramz123
  • 207
  • 1
  • 8
1
vote
1 answer

MarkLogic TDE doesn't support xdmp:uri-content-type or xdmp:uri-format as transformation functions?

I am a little surprised that xdmp:uri-content-type and xdmp:uri-format are not supported as transformation functions in MarkLogic TDE (template-driven extraction) template. [javascript] TDE-EVALFAILED: tde.nodeDataExtract(...) -- Eval for…
Fan Li
  • 1,057
  • 7
  • 11
1
vote
1 answer

Start reindexing programmatically

We have a screen in our web application where the user can select a list of XPaths for which he wants to create Path range indexes. We are looking for a way to start reindexing by using REST/Java/XQuery(auto reindexing is disabled). this reindexing…
DevNinja
  • 1,459
  • 7
  • 10
1
vote
1 answer

Is there a way to schedule backups for all databases in an optimized way in MarkLogic?

I am working as administrator in our company for more than 40 MarkLogic clusters. Each of them has different databases and sizes of databases. I would like to know if somebody has written code to create all database backups in 1 go. At this moment…
1
vote
1 answer

MarkLogic - Each XML section needs validation against different schema

I have a requirement whereby we need to validate an incoming XML against different schemas in MarkLogic. So, the steps required are : Validate the outer structure of xml for possible elements/structure against schema A. Validate each section…
Shabana
  • 121
  • 7
1
vote
1 answer

How to find MarkLogic v9 Data Hub version using linux command or something else

Is there a reliable way to query a MarkLogic v9.x system running on Red Hat Enterprise Linux v7.6 to determine the version of Data Hub that is running please? I was hoping maybe a linux command might be possible, or maybe an API call? Thanks in…
steve
  • 395
  • 2
  • 11
1
vote
1 answer

What are the implications of the "public port" setting?

One of the settings for a MarkLogic app server is "public port" (true/false). The setting description in the Admin UI says: Whether the port is accessible from the public internet. The help tab's description is: specifies whether this port can be…
Dave Cassel
  • 8,352
  • 20
  • 38
1
vote
1 answer

How to use swagger/openAPI on MarkLogic REST APIs for generating documentation?

I have a bunch of REST APIs (GET/POST methods) written in SJS and I want to use swagger/openAPI for documenting it. I found one GitHub repo with some code but not sure as to how to run/use it with my project. Link:…
Mehul
  • 148
  • 9
1
vote
1 answer

Find distinct values for a given json-property across all documents in a collection

Given a json-property in a document, I need to fetch all the distinct values that are present for that property across all the documents present in the collection. Is this possible using the Marklogic Java Client API? For e.g., I have 3 documents of…
Adee J
  • 75
  • 1
  • 5
1
vote
1 answer

MarkLogic optic query using two indexes returns no results

I want to use the MarkLogic optic API to join two range indexes but somehow they don't join. Is the query I wrote wrong or can't I compare the indexes used? I have two indexes defined: an element-attribute range index x/@refid a range field index…
Marcel de Kleine
  • 146
  • 1
  • 11
1
vote
1 answer

Unable to Create range indexes using final-database.xml using marklogic datahub 5.1

I added few element range indexes in data-hub/src/main/ml-config/database-fields/final-database.xml
1
vote
1 answer

unable to uprade marklogic data hub framework using gradle

I am trying to follow the recommendation to upgrade the DHF using gradle but I am running through an issue that I cannot het my head around. The build succeeds but the redeployment fails Any idea on how to fix this ? note that the login info is…
Rad
  • 989
  • 3
  • 14
  • 31
1
vote
1 answer

How to insert data into marklogic database in already existing file using curl RESTAPI

I searched over the internet and found nothing about this making me rethink that "may be we can't insert data into already existing file in Marklogic".But, I want to verify here I know using curl PUT command we can update or create a new document I…
user2708013
  • 399
  • 2
  • 11