Marklogic:sql查询内部转换为计划:执行(计划:sparql(“”)

Marklogic:sql查询内部转换为计划:执行(计划:sparql(“”),marklogic,marklogic-8,Marklogic,Marklogic 8,我正在从事MarkLogic Optic API模板驱动提取;TDE并尝试使用JavaAPI运行查询。从嵌套模板提取数据时遇到问题。我在这里应用简单的相等运算,比如 let $template := op:from-view("records", "recordsView") let $templateProducts :=op:from-view("records", "products") let $templateOccurrences :=op:from-view("records"

我正在从事MarkLogic Optic API模板驱动提取;TDE并尝试使用JavaAPI运行查询。从嵌套模板提取数据时遇到问题。我在这里应用简单的相等运算,比如

let $template  := op:from-view("records", "recordsView") 
let $templateProducts :=op:from-view("records", "products")
let $templateOccurrences :=op:from-view("records", "occurrences")
return $template
 =>op:join-inner(op:from-view("records", "products")
 =>op:join-inner(op:from-view("records", "occurrences"), op:on(op:view-col("products", "md5Digest"), op:view-col("occurrences", "md5Digest"))), op:on(op:view-col("products", "md5Digest"), op:view-col("recordsView", "md5Digest")))
 =>op:where(op:eq(op:col("adDescription"), "QSR/CEC"))
 =>op:result()
然后它抛出错误

XDMP-TRPLPERMNOTFOUND:plan:executeplan:sparql*{…筛选器产品。md5Digest eq引用。md5Digest FILTER产品。md5Digest eq recordsView.md5Digest FILTER AddDescription eq{}stringQSR/CEC},-未启用三重索引置换

这里使用的是sparql,但我只想使用sql,也不想启用三重索引排列。 我不知道到底出了什么问题。
非常感谢您的帮助。

数据库是否已从以前的版本升级到MarkLogic 9

如果是这样,可能需要重新索引数据库:

希望有帮助