Questions tagged [marklogic-8]

8th Version of MarkLogic - An Enterprise NoSQL Database. Indicates a question specific to MarkLogic 8; use with the MarkLogic tag, but not instead of.

MarkLogic is the trusted enterprise NoSQL platform for Big Data applications to drive revenue, streamline operations, manage risk, and make the world safer. Marklogic 8 provided Native JSON storage, NodeJS Client API, JAVA Client API, Server Side Java Script etc.

Apply to questions that are specific to MarkLogic 8. This tag should be used in addition to the MarkLogic tag, which has many more followers. (If you have other other tags and have to choose between this one and MarkLogic, use the MarkLogic tag instead.)

564 questions
4
votes
1 answer

Better way to dump huge file into MarkLogic DB

I am a new to MarkLogic and evaluating it to dump huge csv/text data with some transformation like filter based on some condition etc. As far as I know I can dump data using 2 ways. 1) Using java api for MarkLogic in a multi-threaded environment. 2)…
DMA
  • 1,033
  • 1
  • 11
  • 22
4
votes
1 answer

custom constraint with complex logic or alternative

Is there any way to create a custom constraint where the right part can include complex logic? i.e. name:(phil OR tom) In my function, when I get the $right side, the whole value has been reduced to a simple concatenated string of all of the text,…
TJ Tang
  • 921
  • 6
  • 17
4
votes
4 answers

Compare two elements of the same document in MarkLogic

I have a MarkLogic 8 database in which there are documents which have two date time fields: created-on active-since I am trying to write an Xquery to search all the documents for which the value of active-since is less than the value of…
Rahul
  • 403
  • 3
  • 9
4
votes
2 answers

Action module to convert the word and ppt into xml using CPF

is there any way we can convert MS-Word and powerpoint data and metadata into xml using pipeline feature of CPF..? Thanks in advance
Saahil Gupta
  • 209
  • 2
  • 6
4
votes
1 answer

Sorting multiple maps in marklogic 8

This is more of an XQuery than MarkLogic. I have three map:map and each map has key-value pair of "id" and score. I would like to sort all the distinct ids based on the score from each maps. For eg: map1 : 1:2048, 5:2000 map2 : 2:5000, 1:1000,…
Ravi
  • 1,179
  • 6
  • 13
4
votes
1 answer

how to convert objects into nodes

I'd like to work with some document properties (which are in xml) as nodes so I can work with child elements. So far I have: var counts = []; for (var p of xdmp.documentProperties(uris)) { var isANode = p instanceof Node; // false (actually true…
chriskelly
  • 7,526
  • 3
  • 32
  • 50
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

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

Optimize retrieval of records when quering between multiple collections in marklogic

I am trying to query between 2 collections having a join condition between them, Say the 2 documents are: Collection 1: Company (1M documents) Company Documents: XYZ ABC . …
Manoj
  • 31
  • 3
3
votes
1 answer

Non Null values in Marklogic - Search JSON documents with attributes in array with not null values in Marklogic

Structure of JSON documents required to be searched in Marklogic { "MESSAGEID":"18878285", "ORDERNUMBER":["2295796"], "CATEGORY":"F3702200000" } I wanted to search the URIs of all JSON documents in Marklogic that comprised of not null…
Ankit
  • 31
  • 1
1
2
3
37 38