簡體   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