man > CREATE_TEXT_SEARCH_CONFIGURATION(7)

๐Ÿ“– NAME

CREATE_TEXT_SEARCH_CONFIGURATION - define a new text search configuration

๐Ÿš€ Quick Reference

Use CaseCommandDescription
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

๐Ÿ“ Synopsis

CREATE TEXT SEARCH CONFIGURATION name (
    PARSER = parser_name |
    COPY = source_config
)

๐Ÿ“œ Description

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.

โš™๏ธ Parameters

๐Ÿ’ก Notes

The PARSER and COPY options are mutually exclusive, because when an existing configuration is copied, its parser selection is copied too.

๐Ÿ”„ Compatibility

There is no CREATE TEXT SEARCH CONFIGURATION statement in the SQL standard.

๐Ÿ“Ž See Also

CREATE_TEXT_SEARCH_CONFIGURATION(7)
๐Ÿ“– NAME ๐Ÿš€ Quick Reference ๐Ÿ“ Synopsis ๐Ÿ“œ Description โš™๏ธ Parameters ๐Ÿ’ก Notes ๐Ÿ”„ Compatibility ๐Ÿ“Ž See Also

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/)
Valid XHTML 1.0 Transitional!Valid CSS!