CREATE_TEXT_SEARCH_CONFIGURATION - define a new text search configuration
| Use Case | Command | Description |
|---|---|---|
| Create a new configuration with a parser | CREATE TEXT SEARCH CONFIGURATION name ( PARSER = parser_name ) |
โ๏ธ Creates a configuration using a specified parser; initially no tokenโdictionary mappings |
| Copy an existing configuration | CREATE TEXT SEARCH CONFIGURATION name ( COPY = source_config ) |
๐ Duplicates an existing configuration including its parser and mappings |
| Add dictionaries after creation (ALTER) | ALTER TEXT SEARCH CONFIGURATION ... |
๐ง Use ALTER TEXT SEARCH CONFIGURATION to add tokenโdictionary mappings |
CREATE TEXT SEARCH CONFIGURATION name (
PARSER = parser_name |
COPY = source_config
)
CREATE TEXT SEARCH CONFIGURATION 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.
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 ALTER TEXT SEARCH CONFIGURATION commands must be used to create mappings to make the configuration useful. Alternatively, an existing text search configuration can be copied.
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.
The user who defines a text search configuration becomes its owner.
Refer to Chapter 12 for further information.
name โ ๐ The name of the text search configuration to be created. The name can be schemaโqualified.parser_name โ ๐งฉ The name of the text search parser to use for this configuration.source_config โ ๐ The name of an existing text search configuration to copy.The PARSER and COPY options are mutually exclusive, because when an existing configuration is copied, its parser selection is copied too.
There is no CREATE TEXT SEARCH CONFIGURATION statement in the SQL standard.
Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-12 06:43 @2600:1f28:365:80b0:6f72:a904:73b0:e266
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)