2 .\" Title: CREATE TEXT SEARCH CONFIGURATION
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 CONFIGURATION" "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_CONFIGURATION \- define a new text search configuration
35 CREATE TEXT SEARCH CONFIGURATION \fIname\fR (
36 PARSER = \fIparser_name\fR |
37 COPY = \fIsource_config\fR
42 \fBCREATE TEXT SEARCH CONFIGURATION\fR
43 creates a new text search configuration\&. A text search configuration specifies a text search parser that can divide a string into tokens, plus dictionaries that can be used to determine which tokens are of interest for searching\&.
45 If only the parser is specified, then the new text search configuration initially has no mappings from token types to dictionaries, and therefore will ignore all words\&. Subsequent
46 \fBALTER TEXT SEARCH CONFIGURATION\fR
47 commands must be used to create mappings to make the configuration useful\&. Alternatively, an existing text search configuration can be copied\&.
49 If a schema name is given then the text search configuration is created in the specified schema\&. Otherwise it is created in the current schema\&.
51 The user who defines a text search configuration becomes its owner\&.
55 for further information\&.
60 The name of the text search configuration to be created\&. The name can be schema\-qualified\&.
65 The name of the text search parser to use for this configuration\&.
70 The name of an existing text search configuration to copy\&.
78 options are mutually exclusive, because when an existing configuration is copied, its parser selection is copied too\&.
82 \fBCREATE TEXT SEARCH CONFIGURATION\fR
83 statement in the SQL standard\&.
85 ALTER TEXT SEARCH CONFIGURATION (\fBALTER_TEXT_SEARCH_CONFIGURATION\fR(7)), DROP TEXT SEARCH CONFIGURATION (\fBDROP_TEXT_SEARCH_CONFIGURATION\fR(7))