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
3
votes
2 answers

How can I optimize a SPARQL query that returns optional properties?

How can I optimize a SPARQL query like the following? The intent of this query is: Specify a resource (country resource where countryCode = "US") Get back optional properties defined on the resource. Unfortunately, the OPTIONAL blocks are being…
RMorrisey
  • 7,637
  • 9
  • 53
  • 71
3
votes
1 answer

MarkLogic User Management with Last-Login database

I'm trying to manage LDAP authenticated users on MarkLogic. I want to be able to check the Last-login value for each user. I would like to do this from the REST interface. However, MarkLogic will only return a document that shows my administrative…
mikel
  • 113
  • 7
3
votes
1 answer

Set file system as modules database using MarkLogic REST API

I want to use MarkLogic 8's REST API to create an app server which uses the file system as the module database as shown in this image: I've tried the following variations, with the results described below each command: curl -v -X POST --anyauth -u…
Stuart Leyland-Cole
  • 1,243
  • 7
  • 19
  • 35
3
votes
1 answer

Using Java API for Container Constraint (nested)

I'm using MarkLogic v8. I am trying to apply a container constraint on a structured query to return only documents with value x in element c (nested within elements a and b). queryBuilder.containerConstraint() takes a parameter for an option name…
fun_hat
  • 547
  • 2
  • 7
  • 25
3
votes
1 answer

Using namespace in path range query

I am using cts.pathRangeQuery on an xml document like - http://example.com/xyz/no-data
Ankit Bhardwaj
  • 754
  • 8
  • 27
3
votes
1 answer

How to declare xml namespace in JavaScript + Marklogic

I have xml documents like - http://example.com/xyz/no-data I am using JavaScript in MarkLogic, and want to run an element value query on c:id.…
Ankit Bhardwaj
  • 754
  • 8
  • 27
3
votes
1 answer

cts:uris and cts:search returning different results

I have a strange issue, I am doing cts:uri and cts:search.. And my cts:uris gives me 7 results where as cts:search only gives 3 results.. Not sure what I am doing wrong, hoping someone can point me what I am doing wrong. I tried all possibilities…
Ravi
  • 1,179
  • 6
  • 13
3
votes
1 answer

MarkLogic cts.elementQuery using xs.QName not returning results

I have a simple query in JavaScript: cts.search( cts.elementQuery(xs.QName("headline"), "NYSE") ) And here is one of the files in the database:
Henry
  • 37
  • 3
3
votes
1 answer

mlGradle and configuring replica forests

Does anyone have any examples regarding using mlGradle to configure replica forests? I have looked at the example I could find from the mlGradle…
TJ Tang
  • 921
  • 6
  • 17
3
votes
1 answer

Marklogic computed bucket and UTC timeszone

I have a computed buckets as follows Older This Year
Ravi
  • 1,179
  • 6
  • 13
3
votes
2 answers

Adding extra data to XML documents in Marklogic

I have a large set of XML documents in Marklogic that contain a so called ‘smart number’ (ex. First 2 characters represent Department, second 3 represent project etc.). Parsing the required information from the numbers is pretty complex and requires…
David Harris
  • 705
  • 1
  • 7
  • 16
3
votes
1 answer

SPARQL 1.1 Property Paths in Marklogic 8

The MarkLogic semantics documentation mentions that all SPARQL 1.1 property paths are supported, with the exception of negation. I have been unable to get the syntax where path length is specified to work, i.e. elt{n,m} A path between n and m…
TJ Tang
  • 921
  • 6
  • 17
3
votes
1 answer

Marklogic - Insert pojo as json document in java api

I want to insert pojo object as json document in marklogic using java api. I am using this example as reference which is for inserting pojo as xml document. I am not able to register my pojo class with the handle for JSON. public class JSONDocument…
RCS
  • 1,370
  • 11
  • 27
3
votes
2 answers

Marklogic : Generate primary key while data ingestion

I am ingesting data from CSV using java-api. I have to maintain the primary key of each document. Does marklogic provide any unique auto-generated id during insert ? If marklogic do not provide then i can think of one thing which is random…
RCS
  • 1,370
  • 11
  • 27
3
votes
1 answer

How to specify the attribute of document as uri in marklogic using rest api

I am trying to insert multiple documents into the MarkLogic database using Rest-API. I wanted to customize the uri while inserting by specifying particular attribute as uri. Here is the json file: { "id" : "101", "firstName" : "I", …
RCS
  • 1,370
  • 11
  • 27