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
4
votes
1 answer

MarkLogic field index weighting rules for included child with excluded parent

From MarkLogic's documentation on fields: If a field has two or more elements with different weights and, if one of those elements is a child of another element, then the weight of the parent element is used and the weight of the child element is…
wst
  • 11,681
  • 1
  • 24
  • 39
4
votes
2 answers

Marklogic 8 grouping of search results with search snippets

I have a use case where there is a parent document and some child documents to the parent document. When I search I want to always return the parent documents. let us say if a search result hit 2 child documents with same parent, then the results…
Ravi
  • 1,179
  • 6
  • 13
4
votes
1 answer

How to grant http://marklogic.com/xdmp/privileges/get-role privilege?

I am making a call to sec:role-exists(). I am trying to figure out what permissions are needed to grant this ability to someone other than admin. The error I am getting back implies that I need the http://marklogic.com/xdmp/privileges/get-role…
TJ Tang
  • 921
  • 6
  • 17
4
votes
1 answer

Marklogic Cts:search with sparql

In marklogic, triples can be embedded into an existing document. How can i use cts search query to return the document. An example of a document could be Testing Approved
C Kingsley
  • 228
  • 1
  • 10
4
votes
1 answer

Marklogic date comparison in XQuery with or without index

I need to filter documents by date (last week, last month, etc.) with Marklogic 8. The database contains 1.3 million XML documents. The documents look like this:
M_breeb
  • 195
  • 1
  • 9
4
votes
1 answer

What is the difference between cts:count, cts:frequency, fn:count in MarkLogic?

What is the difference between cts:count, cts:frequency, fn:count in MarkLogic? Could you please support me with example?
Ahmad Tamimi
  • 261
  • 1
  • 2
  • 8
4
votes
1 answer

Schema validation for JSON

Is there way to do schema validation on JSON documents, just like the xsd schema validation for XML documents in MarkLogic 8? Thanks
gjwilson21
  • 123
  • 6
4
votes
1 answer

Deleting/Updating BiTemporal Triples in MarkLogic 8

With the introduction of new BiTemporal features in MarkLogic8, you can track changes in two time axes: valid and system times. These features are also supported for triples. So you can go back in time along those two axes and possibly see the…
4
votes
3 answers

Marklogic xslt performance

I have a XSLT that I'm executing via the xdmp:invoke() function and I'm running into very long processing times to see any result (in some instances timing out completely after max time out of 3600s is reached). This XSLT runs approximately in 5sec…
SalH
  • 91
  • 5
4
votes
1 answer

Count of facet and search differs from search result

When there is a character like underscore(_) and % in search string, results count and facets count do not match with search results. I got one search result which is correct but result count and facet count come more than that. I am using…
4
votes
1 answer

How to import common module namespaces in xquery

I have few module namespace xquery files which were used in multiple files. I want to have the namespaces in one common xquery file and import that file whereever I want to use. Say for example, I have process-lib.xqy, util-lib.xqy and…
user5474448
4
votes
1 answer

MarkLogic Javascript query for empty JSON array

I'm working on a query which will filter documents with nodes that are empty JSON arrays like this (Output property): { "Id": "0aec6b50-03ff-48c9-ac35-1b5e7640a892", "Input": "00000000-0000-0000-0000-000000000000", "Output": [ …
Kamil Budziewski
  • 22,699
  • 14
  • 85
  • 105
4
votes
2 answers

Versioning XML schemas when working with Marklogic

I've read elsewhere that using version strings into the URLs of XML schemas is generally poor practice - for reasons which I understand. I wonder if this mantra still applies when using a Marklogic DB? My reason being that namespaces and stored XML…
Rob Walker
  • 190
  • 1
  • 7
4
votes
1 answer

MarkLogic diacritic-insensitive snippet

For now I'm using this code to generate snippet, based on a JSON document that I'm getting from MarkLogic search. xquery version "1.0-ml"; module namespace searchlib="http://ihs.com/lib/searchlib"; import module namespace…
Kamil Budziewski
  • 22,699
  • 14
  • 85
  • 105
4
votes
2 answers

XQuery != operator with a sequence

I am running into the following problem, and syntax wise I am not sure why I am getting the results that I am getting. I have the following FLOWR expression: (: example 1 :) for $attr in $node/@* where $attr/fn:local-name != ("src", "type",…
CtheGood
  • 999
  • 8
  • 17