sa_text_index_vocab system procedure

Function

Lists all terms that appear in a TEXT index, and the total number of indexed values that each term appears in.

Syntax

sa_text_index_vocab(
	'text-index-name',
	'table-name',
	'table-owner'
	)

Parameters

text-index-name Use this CHAR(128) parameter to specify the name of the TEXT index.

table-name Use this CHAR(128) parameter to specify the name of the table on which the TEXT index is built.

table-owner Use this CHAR(128) parameter to specify the owner of the table.

Description

sa_text_index_vocab returns all terms that appear in a TEXT index, and the total number of indexed values that each term appears in (which is less than the total number of occurrences if the term appears multiple times in some indexed values).

sa_text_index_vocab has this limitation:

Permissions

DBA authority, or SELECT permission on the indexed table is required.

Examples

This example executes sa_text_index_vocab to return all the terms that appear in the TEXT index MyTextIndex on table Customers owned by GROUPO:

sa_text_index_vocab
(‘MyTextIndex’,‘Customers’,‘GROUPO’);
Table 5-3: Terms in the index

term

freq

a

1

Able

1

Acres

1

Active

5

Advertising

1

Again

1

...

...