admin:database-range-element-index( $scalar-type as xs:string, $namespace as xs:string?, $localname as xs:string, $collation as xs:string?, $range-value-positions as xs:boolean, [$invalid-values as xs:string] ) as element(db:range-element-index)
This function constructs a range element index specification.
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; admin:database-range-element-index("string", "/my/namespace", "elementname", "http://marklogic.com/collation/", fn:false() ) (: returns the range element index specification :)