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

MarkLogic - How to switch Language of Suggest

i want to use the suggestion feature of MarkLogic database in conjunction with the Java Client API. The problem with that is, to do a suggest call i need a field or something that serves as a suggestion source. The next step is to create query…
Zipunrar
  • 203
  • 1
  • 2
  • 8
0
votes
3 answers

Marklogic document-get function error

I tried to use marklogic webUI console on port 8000 and Xquery. I tried the code bellow to retrieve a document by URI and display all fields: xdmp:document-get("/XXX/YYYY.json") NOTE :this code is executed on the API port 9033 (custom…
romain-nio
  • 1,183
  • 9
  • 25
0
votes
1 answer

Which search offers best performance in Marklogic 8 java API?

I am using Marklogic 8 and using the Java API to retrieve and store documents.All my documents store (JSON files) are at the maximum of 2Kb file size. I have two questions: Indexes are set on most of the JSON nodes by which am querying. The search…
VikramR
  • 83
  • 8
0
votes
1 answer

Marklogic (Nodejs API) - Add facet on XPath query

I fix a query on my API using the nodejs library, but I lost the facet in the story. Initially, the query (with facet) was done with the queryBuilder. var config = require('./config'); var db marklogic.createDatabaseClient(config.marklogic); var qb…
0
votes
4 answers

Best way to get the exact total search results in marklogic

When I try to get the total search results using search:estimate I get the wrong results.. when I try to parse the total from search:search, it also gives me wrong or from one page to another page I get different total count. How can I get the exact…
Ravi
  • 1,179
  • 6
  • 13
0
votes
1 answer

How to do bulk update into database using MLCP

I have to update my database using MLCP means within the database there are multiple collection so a particular collection I have to change the element or attribute, so how can I achieve this?
0
votes
2 answers

sum-aggregate function with non-unique values

I have a set of documents with a structure like: 10.00 132 022
David Harris
  • 705
  • 1
  • 7
  • 16
0
votes
1 answer

Marklogic java client-api exception via shadow jar build via gradle

I am using marklogic java client-api to extract documents and it works fine when doing in my intellij, but when I build a shadow jar and run it I get the following exception com.sun.jersey.api.client.RequestWriter$RequestEntityWriterImpl…
Ravi
  • 1,179
  • 6
  • 13
0
votes
2 answers

Privileges need to disable triggers database in Marklogic

I have around 500k documents in my marklogic database.. And I have CPF enabled. If I want to do a mass delete or do a mass update (don;t want the CPF triggered for this update) on the documents.. I call my Marklogic administrator, who has access…
Ravi
  • 1,179
  • 6
  • 13
0
votes
2 answers

What privilege need to read a file in module database

I have a configuration file in Marklogic modules database and what is the privilege needed for doing this xdmp:invoke-function(function(){fn:doc('/config/context.xml')},
Ravi
  • 1,179
  • 6
  • 13
0
votes
1 answer

Marklogic : How to use resources

I have created resources for GET, POST, PUT, DELETE using REST convention. I want to use it. Please let me know, how to use the resource which I have created.
RCS
  • 1,370
  • 11
  • 27
0
votes
1 answer

cts:element-value-match does not works from scheduled tasks

I have written this code in the scheduled task XQuery - xquery version "1.0-ml"; declare namespace grp = "http://marklogic.com/xdmp/group"; declare namespace c = 'http://iddn.icis.com/ns/core'; import module namespace admin =…
Ankit Bhardwaj
  • 754
  • 8
  • 27
0
votes
1 answer

CPF throwinng SVC-SOCRECV: xdmp:http-post

I have a CPF task which does an xdmp:http-post and I am getting socket receive error: wait 10.239.12.22:53501-10.239.12.38:8080: Timeout (decodeResponseLine1) When I do the same xdmp:http-post in query console I am not getting the socket receive…
Ravi
  • 1,179
  • 6
  • 13
0
votes
1 answer

Schedule job in aws to delete files in s3 bucket based on availability of flag files

I have a scheduled Marklogic task everyday where I access an S3 bucket, process a file (test.xml) in a directory and then add a flag file (test.done) to the same directory to notify that the file is processed. I need to delete the files (both…
Selva
  • 237
  • 1
  • 7
0
votes
2 answers

json:transform-to-json has extra _value element

I am pulling a document from the database, selecting a part of the document, and transforming that part to json using json:transform-to-json, using an empty json:config("custom") for the configuration. The xml part that I am selecting does not have…
TJ Tang
  • 921
  • 6
  • 17