'mydb',
true(),
map {'textindexupdindex': true(), 'updindextextindex':true(), 'textinclude':'id'}
)
</pre>
Attribute nodes can directly be retrieved from the index with the XQuery functions {{Function|Database|db:attribute}} and {{Function|Database|db:attribute-range}}. The index contents can be accessed with {{Function|Index|index:attributes}}.
The {{OptionsOption|UPDINDEX}} option can be activated to keep this index up-to-date.
==Token Index==