admin.databaseRangeElementIndex( scalar-type as String, namespace as String?, localname as String, collation as String?, range-value-positions as Boolean, [invalid-values as String] ) as element(db.rangeElementIndex)
This function constructs a range element index specification.
const admin = require('/MarkLogic/admin.xqy'); admin.databaseRangeElementIndex("string", "/my/namespace", "elementname", "http://marklogic.com/collation/", fn.false() ) //returns the range element index specification