|-
| width='90' | '''Signatures'''
|{{Func|index:texts|$db as item()|element(value)*}}<br/>{{Func|index:texts|$db as item(), $prefix as xs:string|element(value)*}}<br/>{{Func|index:texts|$db as item(), $start as xs:string, $ascending as xs:boolean|element(value)*}}
|-
|'''Summary'''
|Returns all strings stored in the text index of the [[Database Module#Database Nodes|database node]] {{Code|$db}}, along with their number of occurrences.<br/>If {{Code|$prefix}} is specified, the returned nodes will be refined to the strings starting with that prefix.<br/>If {{Code|$start}} and {{Code|$ascending}} are specified, all nodes will be returned after or before the specified start text.
|-
|'''Errors'''
|-
| width='90' | '''Signatures'''
|{{Func|index:attributes|$db as item()|element(value)*}}<br/>{{Func|index:attributes|$db as item(), $prefix as xs:string|element(value)*}}<br/>{{Func|index:attributes|$db as item(), $start as xs:string, $ascending as xs:boolean|element(value)*}}
|-
|'''Summary'''
|Returns all strings stored in the attribute index of the [[Database Module#Database Nodes|database node]] {{Code|$db}}, along with their number of occurrences.<br/>If {{Code|$prefix}} is specified, the returned nodes will be refined to the strings starting with that prefix.<br/>If {{Code|$start}} and {{Code|$ascending}} are specified, all nodes will be returned after or before the specified start text.
|-
|'''Errors'''