Loading TOC...

MarkLogic 12 EA 2 Product Documentation
admin:database-in-use-path-namespace-prefixes

admin:database-in-use-path-namespace-prefixes(
   $config as element(configuration),
   $database-id as xs:unsignedLong
) as xs:string*

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


  xquery version "1.0-ml";

  import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";
  admin:database-in-use-path-namespace-prefixes(admin:get-configuration(), 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.