This module is introduced with BaseX {{Mark|Version 7.1}}. It provides [[Querying#Functions|XQuery functions]] for displaying information stored in the database index structures. All functions are introduced with the {{Mono|index:}} prefix, which is linked to the statically declared {{Mono|http://basex.org/modules/index}} namespace.
==Commonalities==
All functions share {{Mono|$db}} as argument, which may either reference a string, denoting the name of the addressed database, or a node from an already opened database. The following errors may be raised by all functions:
* <b>[[XQuery Errors#BaseX Errors|BASX0002]]</b> is raised if {{Mono|$db}} references a node that is not stored in a database (i.e., references a main-memory XML fragment).
* <b>[[XQuery Errors#BaseX Errors|BASX0003]]</b> is raised if the addressed database cannot be opened.
=Functions=
==index:facets==
|Returns all attribute names stored in the index, along with their number of occurrences.
|}
=Recent Changes=
This module was introduced with Version 7.1.
[[Category:XQuery]]