Skip to main content
Version: 1.0.16

CREATE TEXT SEARCH DICTIONARY

CREATE TEXT SEARCH DICTIONARY — Define a new text search dictionary

Synopsis

CREATE TEXT SEARCH DICTIONARY name (

TEMPLATE = template

[, option = value [, ... ]]

)

Description

CREATE TEXT SEARCH DICTIONARY creates a new text search dictionary. A text search dictionary specifies a method for identifying words that are of interest or not of interest for searching. A dictionary relies on a text search template, which specifies the functions that actually perform the work. Typically, the dictionary provides some options that control the detailed behavior of the template functions.

If a schema name is given, the text search dictionary is created in the specified schema. Otherwise it is created in the current schema.

The user who defines a text search dictionary becomes its owner.

Parameters

name

The name of the text search dictionary to be created. The name can be schema-qualified.

template

The name of the text search template that will define the basic behavior of this dictionary.

option

The name of a template-specific option to be set for this dictionary.

value

The value for a template-specific option. If the value is not a simple identifier or number, it must be quoted (you can always quote it if you wish).

Options can appear in any order.

Examples

# The following example command creates a Snowball-based dictionary that uses a non-standard stopword list.

CREATE TEXT SEARCH DICTIONARY my_russian (

template = snowball,

language = russian,

stopwords = myrussian

);

See Also

ALTER TEXT SEARCH DICTIONARY, DROP TEXT SEARCH DICTIONARY