我使用 ml-gradle 来定义我的数据库。 我想在元素和属性上使用带有命名空间的路径范围索引。
当我在管理控制台中定义路径名称空间时一切正常,但是当我在定义数据库的 json 中配置它时不会创建路径名称空间:
"uri-lexicon": true,
"path-namespace" : [
{
"prefix": "h",
"namespace-uri": "http://www.w3.org/1999/xhtml"
}
],
"range-path-index": [
{
"scalar-type": "string",
"path-expression": "//h:a[@class = 'els-include']/@href",
"collation": "http://marklogic.com/collation/codepoint",
"range-value-positions": false,
"invalid-values": "reject"
}
]
在 gradle 的痕迹中,我看到名称空间定义未包含在发送的 JSON 中:
"database-name" : "test",
"triple-index" : true,
"collection-lexicon" : true,
"uri-lexicon" : true,
"range-path-index" : [ {
"scalar-type" : "string",
"path-expression" : "//h:a[@class = 'els-include']/@href",
"collation" : "http://marklogic.com/collation/codepoint",
"range-value-positions" : false,
"invalid-values" : "reject"
} ]
} ]
我测试了最新版本的 ml-gradle:4.5.2 有没有人在 ml-gradle 中使用过这个?