CREATE_TEXT_SEARCH_CONFIGURATION(7pg13)
π CREATE_TEXT_SEARCH_CONFIGURATION π
okay bestie, welcome to the CREATE_TEXT_SEARCH_CONFIGURATION page from the PostgreSQL docs β this is the 7pg13 manual, and it's literally here to define a new text search configuration. no cap, it's giving main character energy for ur search setup. π
β¨ NAME β¨
CREATE_TEXT_SEARCH_CONFIGURATION β define a new text search configuration.
π¦ 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. so it's parser girlie + dictionary besties working together, periodt. β¨
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. got it? iconic. π
the user who defines a text search configuration becomes its owner. π
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 π
thePARSERandCOPYoptions are mutually exclusive, because when an existing configuration is copied, its parser selection is copied too. so like, pick one bestie β they do not share the aux. π
π COMPATIBILITY π
there is no CREATE TEXT SEARCH CONFIGURATION statement in the SQL standard. the standard said βnot me,β and honestly we respect it. π
π₯ SEE ALSO π₯
ALTER TEXT SEARCH CONFIGURATION(ALTER_TEXT_SEARCH_CONFIGURATION(7))DROP TEXT SEARCH CONFIGURATION(DROP_TEXT_SEARCH_CONFIGURATION(7))
mwah π this page is signed off by PostgreSQL 13.23, dated 2025, and it's your CREATE_TEXT_SEARCH_CONFIGURATION bestie from the 7pg13 manual. now go make those configs iconic, slay. πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-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