Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp:database-describe-indexes

xdmp:database-describe-indexes(
   [$database-id as xs:unsignedLong]
) as Element()

Summary

Return the list of range index specifications for the given database ID. The range index types include Range element, Range element attribute, Range field, Range path, Geospatial path, Geospatial element, Geospatial element child, Geospatial element pair, Geospatial element attribute pair, URI lexicon (system default), Collection lexicon (system default).

Parameters
database-id The database ID.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-database-describe-indexes

Example


xquery version "1.0-ml";
xdmp:database-describe-indexes(xdmp:database("Documents"))
=>
<database-describe-indexes xmlns="http://marklogic.com/xdmp/database">
 <range-element-indexes>
  <range-element-index>
    <index-id>11741921511703150229</index-id>
    <scalar-type>dateTime</scalar-type>
    <namespace-uri>http://marklogic.com/xdmp/dls</namespace-uri>
    <localname>created</localname>
    <collation></collation>
    <range-value-positions>false</range-value-positions>
    <invalid-values>reject</invalid-values>
  </range-element-index>
  <range-element-index>
    <index-id>14501393544273516703</index-id>
    <scalar-type>unsignedLong</scalar-type>
    <namespace-uri>http://marklogic.com/xdmp/dls</namespace-uri>
    <localname>version-id</localname>
    <collation></collation>
    <range-value-positions>false</range-value-positions>
    <invalid-values>reject</invalid-values>
  </range-element-index>
 </range-element-indexes>
 ...
 <range-field-indexes>
 </range-field-indexes>
 <geospatial-path-indexes>
 </geospatial-path-indexes>
 ...
</database-describe-indexes>

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