ml-gradle range-path-index with path-namespace

39 Views Asked by At

I use ml-gradle to define my database. I want to use a path-range-index with namespace on elements and attributes.

All works well when I define the path namespace in the admin console, but the path-namespace aren't created when I configure it in the json defining the database :

 "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"
    }
  ]

In the traces of gradle I see that the namespace definition aren't included in the JSON sent:

      "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"
      } ]
    } ]

I tested with the last version of ml-gradle: 4.5.2 Has anyone used this in ml-gradle?

0

There are 0 best solutions below