Questions tagged [marklogic-10]

Indicates questions specific to MarkLogic 10; use with the [MarkLogic] tag but not in place of.

MarkLogic 10 is the latest release of MarkLogic's NoSQL document database.

198 questions
0
votes
0 answers

can we use xdmp:document-insert in mlcp transformation query?

I am trying to load binary files(PDF) via mlcp and using transformation method to load few metadata xml for each pdfs load via mlcp. But getting below error - xmlns:error="http://marklogic.com/xdmp/error"…
anuj_gupta
  • 131
  • 4
0
votes
0 answers

In element attribute range query how to handle generic name issue?

The sample xml - XYZ XYZ ABC I want to pull all the docs which has type =fiction(XYZ title) and type=comedy(ABC title). Below query…
anuj_gupta
  • 131
  • 4
0
votes
1 answer

find marklogic hosts one by one

I am writing below code :- xquery version "1.0-ml"; declare variable $hosts := xdmp:host-name(xdmp:group-hosts(xdmp:group())); let $map := map:map() let $i := 1 for $h in $hosts let $key := map:put($map, "$i", $h) return for $x in map:keys($map)…
Aviator
  • 543
  • 1
  • 4
  • 10
0
votes
2 answers

How to read log file of all the hosts in a marklogic cluster and search for a particular keyword and count the results

I had a requirement where I need to read the application log files of all host in cluster and search for a particular keyword and get the count of all. Log file in question is 9005_ErrorLog.txt and will look like below (I am searching for keyword…
SinghVK
  • 313
  • 2
  • 12
0
votes
1 answer

Add element names dynamically to array-element-names configuration of json:transform-to-json() in Marklogic

I'm doing a cts:search and converting the result nodes to JSON using json:transform-to-json() function in MarkLogic 10. Sample code: let $config := json:config("custom") let $response := cts:search(fn:doc(),$query) return…
Antony
  • 183
  • 8
0
votes
1 answer

writing some script in sourceQuery in DHF flow of Marklogic

I have one requirement while running DHF flow I can't use cts.uris in place of sourceQuery. I want to use some script. How can I achieve this? I tried like this.. but not working I have placed my script under a custom directory and calling that…
0
votes
0 answers

MarkLogic Java Client JSONDocumentManager word search returns incorrect total number of results

jsonDocumentManager.setPageLength(pagination.getItemsPerPage()); var offset = ((pagination.getPage() - 1) * pagination.getItemsPerPage()) + 1; try (var documentPage = jsonDocumentManager.search(queryDefinition, offset)) { var results =…
0
votes
1 answer

Connecting Java client to Marklogic 10 server is not working

We are migrating Marklogic 8 to Marklogic 10 and trying to connect the existing Java client application to Marklogic 10 but we are getting error . Root exception: org.apache.http.NoHttpResponseException: ml-onecms.dev.tsg.hmhco.com:9004 failed to…
0
votes
1 answer

What is the difference between two highlighted functions?

There is no syntactical difference so it is a bit confusing, please check this documentation - Element
DevNinja
  • 1,459
  • 7
  • 10
0
votes
0 answers

Send an Email with an Excel attachment using Marklogic

I would like to construct body of an email with excel as an attachment using MarkLogic and JavaScript. Excel should be generated from json response of rest API. I have been through docs but I could find sample for image attachment. Any help is…
swat
  • 71
  • 7
0
votes
0 answers

MarkLogic Data Hub not be able to upgrade version 5.0.4 to 5.4.4

I'm unable to upgrade version 5.0.4 to 5.4.4. I have change version in build.gradle From plugins { id 'java' id 'eclipse' id 'idea' // This plugin allows you to create different environments // for your gradle deploy. Each…
Sam
  • 841
  • 1
  • 5
  • 15
0
votes
0 answers

Add permissions for TDE templates using ml-gradle

We are using ml-gradle version 4.1.1 to deploy the XQuery code and data to app-modules database. Now ,we are trying to update the script to deploy TDE templates to app specific Schemas database. Project path used for templates :…
Antony
  • 183
  • 8
0
votes
0 answers

I found the MarkLogic datahub quickstart installtion problem

I am installing the MarkLogic DataHub in local after create login credentials found the below type of error. Could you please help me anyone. I'll be appreciated. I'm installing the marklogic-data-hub below…
Sam
  • 841
  • 1
  • 5
  • 15
0
votes
0 answers

getting not a usable net address error , in between a mlcp job run

we are running a mlcp job to redact data from one server to other and the whole process take 2 days time to complete but now after running to 10 hours, it is giving 'Default provider - Not a usable net address: outputhost:8000 ERROR…
ravvi
  • 117
  • 6
0
votes
1 answer

Need correction in cts:and-query-options documentation

Please see the attached image with this question. If you see the documentation of cts:and-query-options, everything is fine except the example. In the example, it is returning cts:and-query-queries instead of cts:and-query-options.
DevNinja
  • 1,459
  • 7
  • 10