我们有一个 URI 列表,我们需要按照传递的顺序读取这些 URI。
示例 1
doc(("/doc1", "/doc2", "/doc3"))
Run Code Online (Sandbox Code Playgroud)
上面的函数应该返回“/doc1”的内容,然后是“/doc2”,然后是“/doc3”,但它没有发生。
下面的查询也发生了同样的事情。
例2
cts:search(doc(), cts:document-query((("/doc1"),("/doc2"),("/doc3"))))
Run Code Online (Sandbox Code Playgroud)
如果我想以传递 URI 的顺序阅读文档,有什么解决方案?
任何帮助表示赞赏..!
我是 Marklogic 学习的初学者。我尝试通过互联网检查差异,但我什么也没看到。对不起,如果这是一个愚蠢的问题。实际上有什么区别?
我是 MarkLogic 的新手。
我有 XML 文档
<?xml version="1.0" encoding="UTF-8"?>
<books xmlns="http://www.marklogic.com/ns/gs-books">
<book bookid="2">
<title>A Quick Path to an Application</title>
<author>
<last>Smith</last>
<first>James</first>
</author>
<publisher>Scribblers Press</publisher>
<isbn>1494-3930392-4</isbn>
<abstract>
This book describes in detail the power of how
to use Java to build powerful web applications
that are built on the MarkLogic Server platform.
</abstract>
</book>
</books>
Run Code Online (Sandbox Code Playgroud)
我该如何使用cts:element-values
它呢?
这是我的尝试: cts:element-values(xs:QName("test"),"test")
它给了我这个错误:
[1.0-ml] XDMP-ELEMRIDXNOTFOUND: cts:element-values(fn:QName("","t"), "t") -- t collation=http://marklogic.com/collation 没有元素范围索引/ 坐标系=wgs84 [marklogic]