如何在marklogic中使用JSON文档的路径范围索引?

如何在marklogic中使用JSON文档的路径范围索引?,json,marklogic-9,Json,Marklogic 9,我想在“/request/datetime”上使用路径范围查询。文档是JSON 那么我可以使用哪个cts函数呢 谢谢, Anuj我建议使用带有 路径范围索引对XML和JSON都有效/request/datetime将匹配以下两种: { request: { datetime: "my date and time" } } 及 我的日期和时间谢谢!这有帮助。 <request> <datetime>my date and time

我想在“/request/datetime”上使用路径范围查询。文档是JSON

那么我可以使用哪个cts函数呢

谢谢, Anuj

我建议使用带有

路径范围索引对XML和JSON都有效<代码>/request/datetime将匹配以下两种:

{
  request: {
    datetime: "my date and time"
  }
}



我的日期和时间谢谢!这有帮助。
<request>
  <datetime>my date and time</datetime.
</request>