我想在整个 MarkLogic 数据库中搜索包含特定单词的文档(跨元素和属性)。cts:word-query
仅适用于元素。如何在 MarkLogic 中实现这一点?
例子:
文件 1。<abc>Data correction query</abc>
文件 2。<element2 state="correction"></element2>
输出- 如果搜索“更正”一词,则应返回上述两个文档/URIS。
包含该单词的可能元素属性集不是固定的,因为它是一个数据校正练习。cts:word-query
在不知道属性名称的情况下,是否有任何可能的方法可以将此类搜索扩展到元素之外?