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

custom snippet returning either JSON or XML

In my custom search options, I have specified a transform-results element.
TJ Tang
  • 921
  • 6
  • 17
0
votes
1 answer

poor search performance for certain wildcard queries

I am having performance issues when using wildcard searching for certain letter combinations, and I am not sure what else I need to to to possibly improve it. All of my documents are following an envelope pattern that look something like the…
TJ Tang
  • 921
  • 6
  • 17
0
votes
1 answer

Specify forest while inserting/fetching the document in marklogic

If I have to insert a document in MarkLogic, how can I specify in which forest the document should be stored, using the Java API? Here is an example where I write data to a MarkLogic database : // create the client DatabaseClient client =…
RCS
  • 1,370
  • 11
  • 27
0
votes
1 answer

Rest-Writer and CPF roles

I have a document that I am inserting into the database as role: "rest-writer".. My question is when the CPF is triggered for this document, does the cpf run as "rest-writer" role ? If this is the case is there a way to tell CPF to assume a…
Ravi
  • 1,179
  • 6
  • 13
0
votes
1 answer

Implementing wildcard search on elements in MarkLogic without enabling it in database

I have a scenario where I need to perform a wildcard search on elements but without enabling wildcard search options for the database. I have tried giving indexes to element but yet not able to do wildcard search. Is there any another way to achieve…
shirisha
  • 1
  • 1
0
votes
2 answers

Incomplete sem:sparql results for Property Paths when "optimize=0"

Consider the following subClassOf relations: m1 |_ m1_1 |_ m1_1_1 The following query correctly returns m1_1 and m1_1_1: sem:sparql(' SELECT * WHERE { ?s + . }',…
0
votes
1 answer

SPARQL in XQuery not returning result

I am facing a weird problem using SPARQL. This piece of code is working fine on QConsole - xquery version "1.0-ml"; import module namespace sem = "http://marklogic.com/semantics" at "/MarkLogic/semantics.xqy"; declare function local:forex-series ( …
Ankit Bhardwaj
  • 754
  • 8
  • 27
0
votes
1 answer

CPF and task server in MarkLogic 8

I created a CPF on insert and update of documents. These CPF pipelines create multiple xdmp:spawn-tasks to perform variety of tasks. I have couple of questions with this approach. Some of the spawned tasks will modify the original document. Will…
Ravi
  • 1,179
  • 6
  • 13
0
votes
1 answer

Non empty string in search:search in Marklogic 8

I am trying to search using NOT and I did the following "((collection:Concept) AND ((species:(*)) AND ( - species:(Homo sapiens))))" This works fine, but this returns all the species which are empty or have blank string.. Is there a better way to…
Ravi
  • 1,179
  • 6
  • 13
0
votes
1 answer

Schema Validation of XHTML field

I have an xml entity like this, a:news-article xmlns:c="http://abc/core" xmlns:f="http://abc/fields" xmlns:a="http://abc/assets" xmlns:r="http://abc/refdata"> xyz asset
0
votes
1 answer

search:search and search:snippet match path

I have records that look something like this: ABBVIENET TANGTJ ENABLED AbbVie Inc.…
TJ Tang
  • 921
  • 6
  • 17
0
votes
0 answers

Performance dip in ingestion on master cluster when fetch load is added on replicated servers

Environment details: Cent OS 6.7 MarkLogic 8.0.4 3 node master cluster for ingestion only via XQuery based rest api. 3 node replicated cluster for fetch only via XQuery based rest api. Issue: We are observing severe degradation in ingestion…
Gaurav Gupta
  • 314
  • 1
  • 9
0
votes
1 answer

Can I test MarkLogic SJS from mocha?

I would like to setup some javascript tests that include MarkLogic server-side javascript functions (like xmdp.httpPost() etc using mocha.js. It is doing some checks on the database and then posts something to an external service from within the…
Hugo Koopmans
  • 1,349
  • 1
  • 15
  • 27
0
votes
1 answer

marklogic 8 - How to search collection wise

I have tried this below mentioned Xquery in my query console, but I need search the data from collections wise? let $value1 := "antony" let $value2 := "cse" for $uri1 in cts:uris((),(), ( cts:element-query(xs:QName("P"), cts:and-query(( …
Antony
  • 966
  • 8
  • 19
0
votes
1 answer

MarkLogic on Centos 7.2 on raspberry PI 2 B

Did anyone try to install MarkLogic on CENTos 7.2 on raspberry pi 2 B? I am running into problem when trying this: [root@rpi2 marklogic]# rpm -i MarkLogic-8.0-4.2.x86_64.rpm error: Failed dependencies: lsb is needed by MarkLogic-8.0-4.2.x86_64 …
Zoran Krunic
  • 197
  • 1
  • 2
  • 12