バージョンごとのドキュメント一覧

CREATE TEXT SEARCH DICTIONARY

CREATE TEXT SEARCH DICTIONARY <refpurpose>define a new text search dictionary</refpurpose> — 新しいテキスト検索辞書を定義する

概要

CREATE TEXT SEARCH DICTIONARY name (
    TEMPLATE = template
    [, option = value [, ... ]]
)

説明

<title>Description</title>

<command>CREATE TEXT SEARCH DICTIONARY</command> creates a new text search dictionary. A text search dictionary specifies a way of recognizing interesting or uninteresting words for searching. A dictionary depends 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's functions. CREATE TEXT SEARCH DICTIONARYは新しいテキスト検索辞書を作成します。 テキスト検索辞書は、検索の際に何を対象とし、何を対象としないのかについての方法を指定します。 実際に作業を行う関数を指定するテキスト検索テンプレートに、辞書は依存します。 通常辞書は、テンプレートの関数の動作の詳細を制御するいくつかのオプションを提供します。

If a schema name is given then 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. テキスト検索辞書を定義したユーザが所有者になります。

Refer to <xref linkend="textsearch"/> for further information. 詳細は第12章を参照してください。

パラメータ

<title>Parameters</title>
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 to use for a template-specific option. If the value is not a simple identifier or number, it must be quoted (but you can always quote it, if you wish). テンプレート固有のオプションで使用される値です。 値が単純な識別子または数値でない場合、引用符で括らなければなりません。 (常に引用符で括ることもできます。)

The options can appear in any order. オプションは任意の順序で指定することができます。

<title>Examples</title>

The following example command creates a Snowball-based dictionary with a nonstandard list of stop words. 次の例で示すコマンドは、非標準のストップワードのリストを持つ、雪だるま式に増加する辞書を作成します。

CREATE TEXT SEARCH DICTIONARY my_russian (
    template = snowball,
    language = russian,
    stopwords = myrussian
);

互換性

<title>Compatibility</title>

There is no <command>CREATE TEXT SEARCH DICTIONARY</command> statement in the SQL standard. 標準SQLにはCREATE TEXT SEARCH DICTIONARY文はありません。

関連項目

<title>See Also</title> ALTER TEXT SEARCH DICTIONARY, DROP TEXT SEARCH DICTIONARY