MarkLogic 10 Product Documentation
admin.databaseInUsePathNamespacePrefixes

admin.databaseInUsePathNamespacePrefixes(
   config as element(configuration),
   database-id as (Number|String)
) as Sequence

Summary

This function returns the prefixes of all the namespaces that are in use by some path or geospatial path index. If none is used by any path, returns the empty sequence.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
database-id The ID of the database (for example, xdmp.database("myDatabase")).

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.databaseInUsePathNamespacePrefixes(admin.getConfiguration(), xdmp.database("Documents"))

   //Returns the prefixes of namespaces used in path range indexes defined for the
     'Documents' database. 
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy