BaseXdb/basex — Issue #322: Index Module: additional functions
Author: ChristianGruen
Created: 2011-12-22 15:25:44+00:00
State: open

Suggestions:

## index:texts

Returns all strings stored in the text index. An optional prefix can be specified to refine the results.

```xquery
index:texts($db as item(), $prefix as xs:string) as xs:string*
index:texts($db as item(), $prefix as xs:string) as xs:string*
```

## index:attributes

Returns all strings stored in the attribute value index. An optional prefix can be specified to refine the results.

```xquery
index:attributes($db as item(), $prefix as xs:string) as xs:string*
index:attributes($db as item(), $prefix as xs:string) as xs:string*
```

## index:words

Returns all tokens (words) stored in the full text index. An optional prefix can be specified to refine the results.

```xquery
index:tokens($db as item(), $prefix as xs:string) as xs:string*
index:tokens($db as item(), $prefix as xs:string) as xs:string*
```

## Errors:

* BASX0002 is raised if $db is not a database node, or does not refer to an existing database.
* BASX0021 is raised if the addressed database index is not available.