2
doc/src/sgml/ref/create_tsdictionary.sgml
3
PostgreSQL documentation
6
<refentry id="SQL-CREATETSDICTIONARY">
8
<refentrytitle>CREATE TEXT SEARCH DICTIONARY</refentrytitle>
9
<manvolnum>7</manvolnum>
10
<refmiscinfo>SQL - Language Statements</refmiscinfo>
14
<refname>CREATE TEXT SEARCH DICTIONARY</refname>
15
<refpurpose>define a new text search dictionary</refpurpose>
18
<indexterm zone="sql-createtsdictionary">
19
<primary>CREATE TEXT SEARCH DICTIONARY</primary>
24
CREATE TEXT SEARCH DICTIONARY <replaceable class="parameter">name</replaceable> (
25
TEMPLATE = <replaceable class="parameter">template</replaceable>
26
[, <replaceable class="parameter">option</replaceable> = <replaceable class="parameter">value</replaceable> [, ... ]]
32
<title>Description</title>
35
<command>CREATE TEXT SEARCH DICTIONARY</command> creates a new text search
36
dictionary. A text search dictionary specifies a way of recognizing
37
interesting or uninteresting words for searching. A dictionary depends
38
on a text search template, which specifies the functions that actually
39
perform the work. Typically the dictionary provides some options that
40
control the detailed behavior of the template's functions.
44
If a schema name is given then the text search dictionary is created in the
45
specified schema. Otherwise it is created in the current schema.
49
The user who defines a text search dictionary becomes its owner.
53
Refer to <xref linkend="textsearch"> for further information.
58
<title>Parameters</title>
62
<term><replaceable class="parameter">name</replaceable></term>
65
The name of the text search dictionary to be created. The name can be
72
<term><replaceable class="parameter">template</replaceable></term>
75
The name of the text search template that will define the basic
76
behavior of this dictionary.
82
<term><replaceable class="parameter">option</replaceable></term>
85
The name of a template-specific option to be set for this dictionary.
91
<term><replaceable class="parameter">value</replaceable></term>
94
The value to use for a template-specific option. If the value
95
is not a simple identifier or number, it must be quoted (but you can
96
always quote it, if you wish).
103
The options can appear in any order.
108
<title>Examples</title>
111
The following example command creates a Snowball-based dictionary
112
with a nonstandard list of stop words.
116
CREATE TEXT SEARCH DICTIONARY my_russian (
119
stopwords = myrussian
125
<title>Compatibility</title>
128
There is no <command>CREATE TEXT SEARCH DICTIONARY</command> statement in
134
<title>See Also</title>
136
<simplelist type="inline">
137
<member><xref linkend="sql-altertsdictionary"></member>
138
<member><xref linkend="sql-droptsdictionary"></member>