marklogic-9

Could not initialize your DHF project using Gradle

浪子不回头ぞ 提交于 2021-01-27 23:16:45
问题 I have installed the gradle wrapper as mentioned Create a DHF Project Using the DHF Gradle Plugin and then after that when i run the Gradle command gradlew.bat hubInit to initialize datahub Project I am getting error FAILURE: Build failed with an exception. Where: Build file 'FolderPath\build.gradle' line: 2 What went wrong: An exception occurred applying plugin request [id: 'com.marklogic.ml-data-hub', version: '4.3.1'] Failed to apply plugin [id 'com.marklogic.ml-data-hub'] Could not create

Could not initialize your DHF project using Gradle

◇◆丶佛笑我妖孽 提交于 2021-01-27 22:00:33
问题 I have installed the gradle wrapper as mentioned Create a DHF Project Using the DHF Gradle Plugin and then after that when i run the Gradle command gradlew.bat hubInit to initialize datahub Project I am getting error FAILURE: Build failed with an exception. Where: Build file 'FolderPath\build.gradle' line: 2 What went wrong: An exception occurred applying plugin request [id: 'com.marklogic.ml-data-hub', version: '4.3.1'] Failed to apply plugin [id 'com.marklogic.ml-data-hub'] Could not create

Searching Binary files in marklogic

你说的曾经没有我的故事 提交于 2020-01-24 11:46:35
问题 Is there any method to search content of binary files like PPT, PDF etc other than converting it into X HTML format using xdmp:document-filter() function and searching on it ? 回答1: Basically no. You have to pull out the readable text out of the binary format to allow MarkLogic to index it. You can extract that text with xdmp:document-filter() or with functions like xdmp:pdf-convert() and xdmp:word-convert() , but there is no way to index binary nodes directly. HTH! 来源: https://stackoverflow

MarkLogic 10 - managed document throwing exception on dls:document-checkout-update-checkin

邮差的信 提交于 2020-01-07 09:37:09
问题 I have managed document named 123456.xml and I am trying to update it with dls library function as below, declare variable $uri:= "/abc/123456_xml_versions/1-123456.xml"; dls:document-is-managed($uri), dls:document-checkout-update-checkin($uri, $xml, 'Update', fn:true()) Above script snip is throwing below exception, [1.0-ml] DLS-DOCUMENTVERSION: (err:FOER0000) Cannot update or checkout document version /abc/123456_xml_versions/1-123456.xml This is an existing migration operation of the

MarkLogic - Query Options with extract-document-data

不想你离开。 提交于 2020-01-06 03:47:27
问题 MarkLogic version 9.0-6.2 I am trying to extract a portion of the envelope (example given below) using extract-document-data in Query options. { "envelope": { "headers": { "audit": { "created-by": "admin", "last-updated-by": "*******" } }, "instance": { "UserId": "Test1", "UserName":"TestName" "Phones":[ { "PhoneType":"Home", "PhoneNum":"18009897800" }, { "PhoneType":"Cell", "PhoneNum":"1239897800" } ] } } } My requirement is just to return UserId and UserName. So I tried below code in

MarkLogic - mlcp export to a single output file

纵然是瞬间 提交于 2019-12-24 05:57:49
问题 MarkLogic version 9.0-6.2 mlcp version 9.0.6 I have a customer collection with each document having a customer root node, as below. <customer> <customerId>123</customerId> .... </customer> My need is to export all documents in the collection into one single output file under a new root called customerinfo <customerInfo> <customer> <customerId>123</customerId> .... </customer> <customer> <customerId>456</customerId> .... </customer> </customerInfo> Using below code, I am able to export the

MarkLogic - java heap space error while importing with mlcp

Deadly 提交于 2019-12-14 02:32:05
问题 Marklogic version : 9.0-6.2 mlcp version: 9.0.6 I am trying to import XML file into marklogic using MLCP uisng below code. #!/bin/bash mlcp.sh import -ssl \ -host localhost \ -port 8010 \ -username uname \ -password pword \ -mode local \ -input_file_path /data/testsource/*.XML \ -input_file_type documents \ -aggregate_record_namespace "http://new.webservice.namespace" \ -output_collections testcol \ -output_uri_prefix /testuri/ \ -transform_module /ext/ingesttransform.sjs The code is running

MarkLogic 9 cts.parse not parsing queries correctly

梦想的初衷 提交于 2019-12-13 15:59:34
问题 I am working on a web-based search application using MarkLogic 9. I have a query building interface that allows users to enter strings into textboxes that correspond to particular JSON properties of the documents in the db. The idea was that the user could enter the search terms exactly as the cts.parse (I use server side javascript, not XQuery) expects them, so that their searches could be arbitrarily complex and I would not have to deal with parsing the queries myself. However after doing

MarkLogic template driven extraction and triples: dealing with array nodes

家住魔仙堡 提交于 2019-12-13 00:37:07
问题 I've been studying the examples here: https://docs.marklogic.com/guide/semantics/tde#id_25531 I have a set of documents that are structured with a parent name and an array of children nodes with their own names. I want to create a template that generates triples of the form "name1 is-a-parent-of name2". Here's a test I tried, with a sample of the document structure: declareUpdate(); xdmp.documentInsert( '/test/tde.json', { content: { name:'Joe Parent', children: [ { name: 'Bob Child' }, {

Marklogic CPF strategy

╄→гoц情女王★ 提交于 2019-12-11 17:22:31
问题 For an insert/update operation on a document in a collection, I have CPF turned on. I want to make sure in my CPF, if I modify another document, I donot want it to get added the CPF queue. How can I achieve this ? For eg: say in my CPF queue I have followwing documents d1,d2,d3,d4,d5 Say in my CPF task for d1 , I had to update document d4 . What CPF state do I need to set so that d4 will not be added to the end of CPF queue.. but d4 if already present in the queue, should continue with