[英]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.