2 .\" Title: CREATE TEXT SEARCH DICTIONARY
3 .\" Author: The PostgreSQL Global Development Group
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
6 .\" Manual: PostgreSQL 18.0 Documentation
7 .\" Source: PostgreSQL 18.0
10 .TH "CREATE TEXT SEARCH DICTIONARY" "7" "2025" "PostgreSQL 18.0" "PostgreSQL 18.0 Documentation"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 CREATE_TEXT_SEARCH_DICTIONARY \- define a new text search dictionary
35 CREATE TEXT SEARCH DICTIONARY \fIname\fR (
36 TEMPLATE = \fItemplate\fR
37 [, \fIoption\fR = \fIvalue\fR [, \&.\&.\&. ]]
42 \fBCREATE TEXT SEARCH DICTIONARY\fR
43 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\*(Aqs functions\&.
45 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\&.
47 The user who defines a text search dictionary becomes its owner\&.
51 for further information\&.
56 The name of the text search dictionary to be created\&. The name can be schema\-qualified\&.
61 The name of the text search template that will define the basic behavior of this dictionary\&.
66 The name of a template\-specific option to be set for this dictionary\&.
71 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)\&.
74 The options can appear in any order\&.
77 The following example command creates a Snowball\-based dictionary with a nonstandard list of stop words\&.
83 CREATE TEXT SEARCH DICTIONARY my_russian (
95 \fBCREATE TEXT SEARCH DICTIONARY\fR
96 statement in the SQL standard\&.
98 ALTER TEXT SEARCH DICTIONARY (\fBALTER_TEXT_SEARCH_DICTIONARY\fR(7)), DROP TEXT SEARCH DICTIONARY (\fBDROP_TEXT_SEARCH_DICTIONARY\fR(7))