marklogic

Marklogic : Wilcard search on Element range Index with search:search

寵の児 提交于 2019-12-11 05:54:50
问题 Page1.xml <pages xmlns="http://marklogic.com/docs"> <page> <elementNode>data1</elementNode> <textNode>text1</textNode> </page> <page> <elementNode>data2</elementNode> <textNode>text2</textNode> </page> <page> <elementNode>data3</elementNode> <textNode>text3</textNode> </page> <page> <elementNode>data4</elementNode> <textNode>text4</textNode> </page> </pages> I have created an element range index on elementNode, then executed the following XQuery: xquery version "1.0-ml"; declare namespace

How to improve xdmp:document-filter() performance in Marklogic?

Deadly 提交于 2019-12-11 05:51:47
问题 I am using xdmp:document-filter(doc()) to extract metadata from documents(doc, docx, pdf etc). We are using this because it works for all kinds of document format and generates the XHTML format for every kind of document. But the major drawback of this command is that it slows down the query. If there are one or two documents in the database then the query works fine but if there are more documents (e.g. 10 or 15) then the query slows down. We want to extract and show the information from the

Extracting data from MarkLogic db using Java Client API when fetching one document may be dependent upon other documents

别说谁变了你拦得住时间么 提交于 2019-12-11 05:09:05
问题 I have started working on the MarkLogic database using the Java Client API. I have two use cases for me :- Extract all the documents which are in the same collection and which are in the form of JSON where a particular date is less than or equal to a certain date. JSON is in the form { "id" : "12345" "date" : "2012-12-12", "messageType" : "dummy_type", .... } I am able to do this using the below code :- val queryMgr = client.newQueryManager(); var rawHandle: StringHandle = new StringHandle

MarkLogic Failover Cluster on Azure - Forest configuration on Azure Blob

馋奶兔 提交于 2019-12-11 04:46:41
问题 As per MarkLogic cluster recommendation, we need to configure it as per below link MarkLogic Cluster - Configure Forest with all documents Forest configuration is done as per MarkLogic on Azure Guide Page No. 28 i.e. Azure storage key has been set in Security -> Credentials -> Azure Data directory has been set as azure:// This is working fine and every forest on cluster host has been set in a different container within same azure Blob. Now i want to configure failover cluster by replicating

How to transform multiple documents into a single document using MarkLogic's REST API?

空扰寡人 提交于 2019-12-11 03:49:50
问题 Using MarkLogic REST API, when I set Accept to multipart/mixed I see the response in the format: --BOUNDARY Content-Type: application/xml Content-Disposition: attachment; filename="/hcp/458.xml"; category=content; format=xml Content-Length: 412 <?xml version="1.0" encoding="UTF-8"?> <hcp xmlns="http://schemas.com"> <id>458</id> <tenantId>2</tenantId> <firstName>Hoongoong</firstName> <middleName/> <lastName>Tangyy</lastName> </hcp> --BOUNDARY Content-Type: application/xml Content-Disposition:

MarkLogic sem: function group in MarkLogic Java API

跟風遠走 提交于 2019-12-11 03:47:26
问题 I am looking for information around the MarkLogic Java API, precisely I tried to find Java equivalent to the sem: xquery function group. I was not able to find anything in the docs so I thought you guys might have a better idea. What I need to do exactly is transform rdf/turtle to the ML triples , I understand that XQuery would be ideal for that but I can't use it because of the requirements, and once again I know it's not too clever but I can't change that. Any help would be greatly

Marklogic 8 Windows 7 post-install login

*爱你&永不变心* 提交于 2019-12-11 03:39:24
问题 I have installed MarkLogic 8 on a 64bit Windows 7 machine with 8Gb memory... the server seems to run fine....all seems to be fine except for my ability to login. A login box appears on a blank browser page when using either the 'Use Marklogic Server' or Admin Marklogic Server' program shortcuts, which asks for a username and password for http://127.0.0.1:8001. My credentials do not seem to be working and I created a new admin account which is unrecognized as well. I know this is very

Calling xquery libraries with dependencies from rest endpoints in MarkLogic 8

孤街浪徒 提交于 2019-12-11 03:28:53
问题 We're in the process of upgrading from MarkLogic 6 to 8 and have run into some problems calling library modules. We have xquery library modules that are called both from custom REST extensions and from non-REST xquery. MarkLogic's documentation says that REST endpoints can use libraries installed either with their new /ext endpoint or libraries installed the old way (placed somewhere else in the modules database). However, when the library module is using, for example, the functx package that

Handling embargoed content scenario in MarkLogic

匆匆过客 提交于 2019-12-11 03:16:27
问题 I have a MarkLogic 7 database in which several documents are inserted and every document has its own created-on and released-on . Say for example if a document is inserted into the database at 1400 hrs and its released-on value is 1700 hrs then I need to POST this document to an external REST service at 1700 hrs. I have tried the following options: Configure a CPF pipeline such that whenever a document is inserted it's released-on value is read and a Scheduled Task is created to trigger based

Marklogic How can I find out list documents have Key Mismatch

╄→尐↘猪︶ㄣ 提交于 2019-12-11 02:55:34
问题 I have some documents return "Key mismatch" errors. fn:doc("/city/010101.xml) result: [1.0-ml] XDMP-KEYMISMATCH: fn:doc("/city/010101.xml") -- Key mismatch, CacheExpandedTreeStorage::put , uniqKey1=0x2c0d120d2ada6c2a5, uniqKey2=0xa5a9ab1b8021df93e10, uriKey1=0x8ac46966e011159b0d, uriKey2=0xfa38e13b022c1f5115 It looks like there are lost file data from the storage or file system layer. Indexed32FileSequentialReader::read: XDMP-READ: /data/Forests/-05-A/0000df03/TreeData: Invalid read How can I