CREATE_TEXT_SEARCH_CONFIGURATION(7pg16)
πΈ NAME πΈ
okay so this is the CREATE_TEXT_SEARCH_CONFIGURATION(7pg16) page from the PostgreSQL 16.15 docs π β and it's literally CREATE_TEXT_SEARCH_CONFIGURATION - define a new text search configuration. No cap, that's the whole point. π«Ά
β¨ SYNOPSIS β¨
the syntax is short and iconic:
CREATE TEXT SEARCH CONFIGURATION name (
PARSER = parser_name |
COPY = source_config
)
π DESCRIPTION π
okay so CREATE TEXT SEARCH CONFIGURATION creates a brand-new text search configuration. A text search configuration specifies a text search parser β the thing that can divide a string into tokens β plus dictionaries that can be used to determine which tokens are of interest for searching. It's giving search-brain, and we love that. π₯
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 β slay, reuse the vibe. β¨
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. main character energy, but make it ownership. π
refer to Chapter 12 for further information. iykyk. π¦
π PARAMETERS π
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. π«Ά
π NOTES π
the PARSER and COPY options are mutually exclusive, bestie β you cannot use both. Why? Because when an existing configuration is copied, its parser selection is copied too. So yeah, they're not a combo meal. π
ββοΈ
π COMPATIBILITY π
There is no CREATE TEXT SEARCH CONFIGURATION statement in the SQL standard. that's just the tea. π
π SEE ALSO π
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))DROP TEXT SEARCH CONFIGURATION(DROP_TEXT_SEARCH_CONFIGURATION(7))
xoxo, PostgreSQL 16.15 Β· 2026 Β· CREATE_TEXT_SEARCH_CONFIGURATION(7pg16) ππ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql16 16.15-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms