繁体   English   中英

具有特定元素的MarkLogic 7 Return Document

[英]MarkLogic 7 Return Document that have a specific element

MarkLogic 7中的cts:element-value-query不能像MarkLogic 8那样工作,我想返回包含某个元素的文档而无需注意其值,我的查询就像:

cts:search(collection("My-Collection"),cts:element-value-query(xs:QName("Element1"), ""))

我想返回MarkLogic 7所有具有Element1的文档!

尝试:

cts:search(
  collection("My-Collection"),
  cts:element-query(xs:QName("Element1"), cts:and-query(()) )
)

应该适用于所有MarkLogic版本。

HTH!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM