marklogic

Why are there 2 documents on the same URI?

帅比萌擦擦* 提交于 2020-01-24 23:06:10
问题 I'm wondering why this has happened. May I know what all scenario's might have lead to this situation? 回答1: It is not usual for this to happen. It usually involves document insertions into explicit forests, or by re-attaching forests with documents at uris that are already in use. Fast-loading options of MLCP and the MapReduce connector can have that effect too. MLCP prints a warning for that reason. Avoid insertion into explicit forests, and use fast-loading options with care. For more

How do you set the Collation for a SPARQL query?

試著忘記壹切 提交于 2020-01-24 13:22:25
问题 I am a Java developer working with a MarkLogic database. A key function of my code is its capacity to dynamically generate 4-6 SPARQL queries and run them via HTTP GET requests. The results of each are added together and then returned. I now need these results sorted consistently. Since I am paging the results of each query (using the LIMIT and OFFSET statements) each query has its own ORDER BY statement. Without embedding sorting into the queries the pages of results will be returned out of

how to set multiple permission in MLCP -option_permissions

て烟熏妆下的殇ゞ 提交于 2020-01-24 13:21:11
问题 I use MLCP IMPORT option parameter for permissions. But I getting an error at permissions. If I put "read" it works. However MLCP doesn't work if I combine "(read,update)". Please give me some hints. Thanks in advance. -output_permissions "bib-read-role, (read,update),bib-insert-permission, update" 回答1: You use it like this: -output_permissions "bib-read-role,read,bib-read-role,update,bib-insert-permission,update" HTH! 来源: https://stackoverflow.com/questions/46057571/how-to-set-multiple

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

Checking absence of attribute with cts:query

杀马特。学长 韩版系。学妹 提交于 2020-01-24 08:50:06
问题 I have an XML fragment where I want to have different queries based in the existence of the id attribute: <author order="1" id="99999999" initials="A." given-names="Able" surname="Baker" fullname="Able Baker"/> I have tried: let $first-query := if ($first) then cts:or-query(( cts:element-attribute-word-match(xs:QName("author"), xs:QName("given-names"), $first || "*", ("collation=http://marklogic.com/collation/codepoint")), cts:element-attribute-word-match(xs:QName("author"), xs:QName(

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

Replacing strings in various XML files

烂漫一生 提交于 2020-01-20 08:31:52
问题 Given the following xml file with the knowledge that the structure and contents can change: <something> <parent> <child>Bird is the word 1.</child> <child>Curd is the word 2.</child> <child>Nerd is the word 3.</child> </parent> <parent> <child>Bird is the word 4.</child> <child>Word is the word 5.</child> <child>Bird is the word 6.</child> </parent> </something> I would like a way to use xquery (and even xslt) to replace all instances of a supplied string with another. For example, replace

Need XQuery syntax for 'if Exists()' behaviour in search api

北慕城南 提交于 2020-01-16 00:44:47
问题 I have a requirement that we need to perform marklogic search only within the documents which have <associated-bundles> element in it's active version. Below is our document structure <document document-status='active'> <file> <version id=1 version-status='active'> <file-name/> <associated-bundles> <bundle doc-id="100082"></bundle> <bundle doc-id="100083"></bundle> <bundle doc-id="100000"></bundle> </associated-bundles> ... <file-level-visits>3</file-level-visits> </version> <version id=2

Marklogic 6.0 support windows 32 bit?

北慕城南 提交于 2020-01-15 09:15:24
问题 Does Marklogic 6.0 support windows 32 bit OS. On their home page, I see it as supported but a DLL is required but rest of thread on other sites show that 32 bit support is not there. Pls confirm.. Or is it something that Marklogic 6.0 can be installed with 32 bit but it may be best for 64 bit and certain features wont work as expected. If so, pls list such features missing. Thanks Praveen 回答1: 32-bit support is gone for good, as of MarkLogic 6. This is for the best: running in 32-bit