Loading TOC...


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


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.

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")).


  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. 

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.