Questions tagged [marklogic-9]

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

Apply to questions that are specific to MarkLogic 9. 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.)

472 questions
3
votes
3 answers

How can I add multiple bootstrap hosts in the MarkLogic cluster using MarkLogic API?

I have to create multiple bootstrap hosts in the clusters using marklogic API during deployment using ml-gradle. I know I can configure it by admin console (8001 port) but I am not able to figure out how can I add multiple bootstrap hosts in the…
Manish Narang
  • 87
  • 1
  • 1
  • 10
3
votes
1 answer

How to de-couple MarkLogic clusters safely?

I have a master cluster and a foreign cluster coupled together. In addition, I've databases replication also enabled for a couple of databases with forest connect by name set to false. I'd like to de-couple these two clusters and re-couple them…
bosari
  • 1,922
  • 1
  • 19
  • 38
3
votes
1 answer

Doing a xdmp:node-replace() for a sequence of elements and replace that with one element

So I have an interesting problem, assume I have this document (example.xml) inside a MarkLogic database: Active boom2 Active
Andy Chan
  • 133
  • 7
3
votes
1 answer

How to use fn:starts-with() and fn:ends-with() with cts:uris()

My Requirement is, I want to return document URI only if path range index value is starts-with or ends-with some word. As Per MarkLogic documentation I can only use ">, <, <=, >=, =, !=" to compare path range index value but in my requirement I want…
DevNinja
  • 1,459
  • 7
  • 10
3
votes
2 answers

Getting wrong result while doing case insensitive search

I have a xml documents in MarkLogic, Document 1 - URI - /test1/wf1 Oracle_RMS_9_RMS_9_Pos_and_Allocations_WF
DevNinja
  • 1,459
  • 7
  • 10
3
votes
2 answers

MarkLogic - Incremental load using MLCP

MarkLogic version : 9.0-6.2 We are trying to use mlcp to load daily changes of customer data into data-hub-STAGING and then use a harmonize flow to bring changes into data-hub-FINAL. As I understand, the 'collector.sjs' is used to return the uris…
Bhanu
  • 427
  • 2
  • 8
3
votes
1 answer

MarkLogic - JSON to XML conversion - handling multiple attributes

I have a document as below. let j = { "PolicyInfo" : { "id" : "12345", "PolNum" : "TestPolicy", "NameInfo": { "idref":"9999", "Name":"TestName" } } } My requirement is to convert id (under PolicyInfo) and also…
Bhanu
  • 427
  • 2
  • 8
3
votes
3 answers

Strange behaviour when applying fn:data to info-node

When I run the following xquery in MarkLogic": xquery version "1.0-ml"; let $envelope := hello return…
3
votes
1 answer

How to remove a column from a csv file while loading a file?

I want to remove the particular column from the csv file and load it into database using mlcp. My csv file contains: URI,EmpId,Name,age,gender,salary 1/Niranjan,1,Niranjan,35,M,1000 2/Deepan,2,Deepan,25,M,2000 3/Mehul,3,Mehul,28,M,3000 I want to…
3
votes
2 answers

How to iterate through an array in a sequence using forEach

I am using the xdmp.eval function to search and return a document in my final database to use during my harmonization process. let finalDoc = xdmp.eval( "fn.head(cts.search(cts.jsonPropertyValueQuery('Id',id,…
Hank
  • 131
  • 4
3
votes
1 answer

MarkLogic - Performance variation in custom rest GET REST service

MarkLogic version 9.0-6.2 I have a custom rest GET service that takes an ID (lets say PolicyId) and returns a document (only 1 document returned always). Element Range index is created on PolicyId. I have 100 different documents, one for each…
Bhanu
  • 427
  • 2
  • 8
3
votes
1 answer

Retrieve All Document Count Varies in MarkLogic 9

I Recently Upgraded from MarkLogic-8 to MarkLogic-9, and i am having following set of Documents in MarkLogic-8, Collection - System, User Document URI - /user.xml Collection - System, Role Document URI - /role.xml Collection - System,…
DevNinja
  • 1,459
  • 7
  • 10
3
votes
1 answer

fn:replace to return one string on iteration

I am looking to implement a find and replace for a string from a document by using the key and value pair of a map. The code I currently have seems to be returning 2 strings because of 2 map values. I am looking to return one string with values in…
SteeleDev
  • 169
  • 1
  • 3
  • 12
3
votes
1 answer

How to use ml-gradle to load modules on rest server with 2-way SSL

I am trying to configure ml-gradle to load modules on an environment that is setup with 2-way SSL, but am not finding much documentation on how I should specify my Certificate in the gradle.properties . There are brief instructions at…
dan
  • 131
  • 3
3
votes
2 answers

MarkLogic Wilcard Search - QConsole vs. Java API

I believe I’m seeing different results from a Java-based query and what I believe is the equivalent cts:search in the query console. There's a lot of information here and I tried to organize it appropriately. Here are the steps to set up a simple…
1
2
3
31 32