marklogic-dhf

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

How do I handle the REST API in node.js in Marklogic Grove?

我们两清 提交于 2021-01-05 12:44:32
问题 I am developing a UI application using MarkLogic Grove(React). By default, REST API calls from web browser will be forwarded directly to MarkLogic. For example: http://hostname/v1/resources/foo/ If the REST API is a specific path, I would like to do the processing in node.js as it is without forwarding the call to MarkLogic. Where and how should I implement it?(Only available to authenticated users.) For example:http://hostname/my-rest-api/bar I'd like some advice as there is too much source

How do I call the backend MarkLogic API from my own API in MarkLogic Grove?

戏子无情 提交于 2020-12-15 01:42:04
问题 This question is a continuation of the question below. How do I handle the REST API in node.js in Marklogic Grove? I was able to implement a sample REST API that can be called when authenticated with Grove, as shown below. middle-tier/routes/index.js const authProvider = require('../../grove-node-server-utils/auth-helper'); router.get('/my-rest-api/bar',(req, res) => { const response = {status : "success"}; authProvider.isAuthenticated(req,res,()=>{ res.send(response); }); }); Next, I want to

MARKLOGIC: Is it possible to use more than 1 columns from a CSV file when generating URI ID during data ingestion in MarkLogic?

独自空忆成欢 提交于 2020-01-21 19:16:22
问题 I am quite new to MarkLogic and I am not sure how to best deal with the challenge I have right now. I have a CSV file exported from a table that will be ingested to MarkLogic database. Now the source table uses 4 columns as its unique primary key combination. In MarkLogic, by default, only one column from CSV file can be used as the URI ID. My question is, is it possible to use more than 1 columns from a CSV file as the URI ID during data ingestion in MarkLogic? If yes, is this feature or

MARKLOGIC: Is it possible to use more than 1 columns from a CSV file when generating URI ID during data ingestion in MarkLogic?

江枫思渺然 提交于 2020-01-21 19:13:02
问题 I am quite new to MarkLogic and I am not sure how to best deal with the challenge I have right now. I have a CSV file exported from a table that will be ingested to MarkLogic database. Now the source table uses 4 columns as its unique primary key combination. In MarkLogic, by default, only one column from CSV file can be used as the URI ID. My question is, is it possible to use more than 1 columns from a CSV file as the URI ID during data ingestion in MarkLogic? If yes, is this feature or

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

How to Replace multiple nodes of XML in one go ? DATA HUB FRAMEWORK

落花浮王杯 提交于 2019-12-11 08:44:57
问题 I am having several documents in STAGING DB. Based on a condition i need to check if the document with same ID exist in FINAL. If it does then i need to replace the multiple nodes of document from STAGING to FINAL and then insert it. DOC from STAGING- <root> <ID>1</ID> <value1>India</value1> <value2>USA</value2> <value3>Russia</value3> <value4>Srilanka</value4> <value5>Europe</value5> <value6>Antartica</value6> <value7>Spain</value7> </root> DOC from FINAL- <root> <ID>1</ID> <value1></value1>

MARKLOGIC: Is it possible to use more than 1 columns from a CSV file when generating URI ID during data ingestion in MarkLogic?

有些话、适合烂在心里 提交于 2019-12-02 04:35:46
I am quite new to MarkLogic and I am not sure how to best deal with the challenge I have right now. I have a CSV file exported from a table that will be ingested to MarkLogic database. Now the source table uses 4 columns as its unique primary key combination. In MarkLogic, by default, only one column from CSV file can be used as the URI ID. My question is, is it possible to use more than 1 columns from a CSV file as the URI ID during data ingestion in MarkLogic? If yes, is this feature or setting available in data hub? If it is not possible, what is usually the best practice for this in