CREATE_TEXT_SEARCH_CONFIGURATION(7pg15)
CREATE_TEXT_SEARCH_CONFIGURATION π
okay bestie, welcome to the CREATE_TEXT_SEARCH_CONFIGURATION page from the PostgreSQL 15.19 Documentation β manual name 7pg15, and yes we are officially in text-search-configuration territory. π¦β¨
πΈ NAME πΈ
CREATE_TEXT_SEARCH_CONFIGURATION defines a brand-new text search configuration. Thatβs the whole main-character move. π
π SYNOPSIS π
the syntax is giving very structured, no cap:
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. literally the parser + dictionary situation. π§β¨
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. lowkey important. π
The user who defines a text search configuration becomes its owner. periodt. π
Refer to Chapter 12 for further information. π
π PARAMETERS π
nameβ the name of the text search configuration to be created, bestie. 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 like, they cannot both show up in the same fit. π
mutually exclusive means exactly that β choose one, bestie. no cap. π₯
π 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))
π cute sign-off: PostgreSQL 15.19, dated 2026, page CREATE TE...IGURATION(7) β now go make your text search configs iconic, bestie! π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql15 15.19-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