CREATE_TEXT_SEARCH_CONFIGURATION(7pg17)
π CREATE_TEXT_SEARCH_CONFIGURATION π
okay bestie, welcome to the 7pg17 manual page for CREATE_TEXT_SEARCH_CONFIGURATION β PostgreSQL 17.11 documentation, and yes we're gonna make text search configs make sense. π«Ά
πΈ NAME πΈ
CREATE_TEXT_SEARCH_CONFIGURATION β define a new text search configuration. That's it, that's the name, no cap. π
β¨ SYNOPSIS β¨
CREATE TEXT SEARCH CONFIGURATION name (
PARSER = parser_name |
COPY = source_config
)
π¦ DESCRIPTION π¦
So CREATE TEXT SEARCH CONFIGURATION literally creates a new text search configuration. A text search configuration is the whole setup: it 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. It's giving "tokenizer meets dictionary gatekeeping" energy, and honestly? iconic. π
If you only specify the parser, then the new text search configuration initially has no mappings from token types to dictionaries, and therefore will ignore all words. Yep, all of them. π 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. Copy-paste slay. πβ¨
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. Lowkey important, bestie. π«Ά
The user who defines a text search configuration becomes its owner. Main character energy, fr fr. π
Refer to Chapter 12 for further information. That's the deep lore β go read it. π
π 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, because when an existing configuration is copied, its parser selection is copied too. So don't try to do both, bestie β that's not a vibe. π«π
π COMPATIBILITY π
There is no CREATE TEXT SEARCH CONFIGURATION statement in the SQL standard. Not a single one. π
π₯ SEE ALSO π₯
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7)) πΈDROP TEXT SEARCH CONFIGURATION(DROP_TEXT_SEARCH_CONFIGURATION(7)) π¦
that's the whole page, bestie. xoxo, PostgreSQL 17.11 documentation from 2026, page CREATE TE...IGURATION(7) π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql17 17.11-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