
admin.databaseRangePathIndex( database-id as (Number|String), scalar-type as String, pathexpr as String, collation as String?, range-value-positions as Boolean, invalid-values as String ) as element(db.rangePathIndex)
This function constructs a path range index specification.
  
  const admin = require('/MarkLogic/admin.xqy');
  admin.databaseRangePathIndex(
  xdmp.database('Documents'),
  "string",
  "/a/b/c",
  "http://marklogic.com/collation/",
  fn.false(),
  "ignore")
  =>
  <rangePathIndex xmlns="http://marklogic.com/xdmp/database">
    <scalarType>string</scalarType>
    <pathExpression>/a/b/c</pathExpression>
    <collation>http://marklogic.com/collation/</collation>
    <rangeValuePositions>false</rangeValuePositions>
    <invalidValues>ignore</invalidValues>
  </rangePathIndex>