marklogic

SVC-SOCBUF error in task server

为君一笑 提交于 2020-07-23 07:29:46
问题 I am getting SVC-SOCBUF errors in my MarkLogic task server. I am spawning lot of xdmp:http-post requests to my MarkLogic server. I am not sure whether that is causing the issues. Help me if you have faced similar issues. Any configuration to be modified? 回答1: It is usually an indication that there was something wrong with the response that came back from the remote server that is being called. It has been seen to occur with empty responses. HTH! 来源: https://stackoverflow.com/questions

SVC-SOCBUF error in task server

家住魔仙堡 提交于 2020-07-23 07:28:05
问题 I am getting SVC-SOCBUF errors in my MarkLogic task server. I am spawning lot of xdmp:http-post requests to my MarkLogic server. I am not sure whether that is causing the issues. Help me if you have faced similar issues. Any configuration to be modified? 回答1: It is usually an indication that there was something wrong with the response that came back from the remote server that is being called. It has been seen to occur with empty responses. HTH! 来源: https://stackoverflow.com/questions

XSLT doc(uri) or document(uri) function not resolving uri in context of content database?

两盒软妹~` 提交于 2020-07-22 22:15:17
问题 Working with latest MarkLogic-10.0-2.1-amd64 on win10 In a xquery I invoke an xslt transformation: xdmp:xslt-invoke("/tidy2html.xslt", doc($docurl)) And within that xslt transformation, I want to retrieve an additional doc (with uri sdp/xref.xml) from the content database where $docurl resides. <xsl:variable name="xref-uri" select="doc('sdp/xref.xml')"/> I'm sure by looking at query console that doc('sdp/xref.xml') exists using XQuery context pointed to the content database. In XSLT I'm a bit

XSLT doc(uri) or document(uri) function not resolving uri in context of content database?

冷暖自知 提交于 2020-07-22 22:13:37
问题 Working with latest MarkLogic-10.0-2.1-amd64 on win10 In a xquery I invoke an xslt transformation: xdmp:xslt-invoke("/tidy2html.xslt", doc($docurl)) And within that xslt transformation, I want to retrieve an additional doc (with uri sdp/xref.xml) from the content database where $docurl resides. <xsl:variable name="xref-uri" select="doc('sdp/xref.xml')"/> I'm sure by looking at query console that doc('sdp/xref.xml') exists using XQuery context pointed to the content database. In XSLT I'm a bit

XSLT doc(uri) or document(uri) function not resolving uri in context of content database?

你说的曾经没有我的故事 提交于 2020-07-22 22:12:37
问题 Working with latest MarkLogic-10.0-2.1-amd64 on win10 In a xquery I invoke an xslt transformation: xdmp:xslt-invoke("/tidy2html.xslt", doc($docurl)) And within that xslt transformation, I want to retrieve an additional doc (with uri sdp/xref.xml) from the content database where $docurl resides. <xsl:variable name="xref-uri" select="doc('sdp/xref.xml')"/> I'm sure by looking at query console that doc('sdp/xref.xml') exists using XQuery context pointed to the content database. In XSLT I'm a bit

How to process large number of documents in chunk to avoid expanded tree cache full

淺唱寂寞╮ 提交于 2020-03-25 13:43:24
问题 I have one entity in MarkLogic under which around 98k+ documents ( /someEntity/[ID].xml ) are present and I have one situation in which I have to add a few new tags in all those documents. I prepared a query to do add child node and then try to run against that entity receiving expanded tree cache full. I increased cache memory to few more gigs and it works and takes a long time to complete. Also tried with xdmp:clear-expanded-tree-cache() and it also won't work. Any pointers how we can fetch

NIFI how to change uuid to file name

ぐ巨炮叔叔 提交于 2020-02-25 00:39:17
问题 I have some documents in XML format load into Marklogic. The PutMarkLogic URI attribute Name property default "uuid". How can I change it to file name. Input Directory: /input/ac01010.xml /input/ac02010.xml .... I have two processors below GetFile ->PutMarkLogic Want Marklogic display documents: ac01010.xml ac02010.xml Thanks Andy and Ben. I have updated UpdateAttribute and PutMarkLogic properties in Nifi. it works. UpdateAttribute:added ${filename} PutMarkLogic Property: 回答1: You can use an

QueryOptionsBuilder Deprecation

こ雲淡風輕ζ 提交于 2020-02-24 05:13:32
问题 As seen on http://developer.marklogic.com/learn/java/analytics, you are able to do faceted searches with the JavaAPI. However, the examples on that page use QueryOptionsBuilder , which has been deprecated. Is there an alternative to using QueryOptionsBuilder in the JavaAPI to do faceted searches at this time? Or are we stuck using a deprecated class until some future release? Thanks! 回答1: Yes, there is an alternative. You can send or receive query options as JSON or XML instead of using the

QueryOptionsBuilder Deprecation

旧城冷巷雨未停 提交于 2020-02-24 05:12:18
问题 As seen on http://developer.marklogic.com/learn/java/analytics, you are able to do faceted searches with the JavaAPI. However, the examples on that page use QueryOptionsBuilder , which has been deprecated. Is there an alternative to using QueryOptionsBuilder in the JavaAPI to do faceted searches at this time? Or are we stuck using a deprecated class until some future release? Thanks! 回答1: Yes, there is an alternative. You can send or receive query options as JSON or XML instead of using the

Using Transform Module during MLCP Ingestion to MarkLogic

左心房为你撑大大i 提交于 2020-01-30 03:06:37
问题 I am trying to implement envelope pattern when i am ingesting documents through MLCP My transform Module is like this : function envelope(content, context) { var transformed ={}; transformed.Metadata = { "Created" : "Time"}; transformed.Source = content.value; content.uri = fn.concat("/transformed/",content.uri); content.value = transformed; }; exports.transform = envelope; My MLCP Command is like this mlcp.bat import -host localhost -port 8000 -username admin - password admin -mode local