CREATE_TEXT_SEARCH_DICTIONARY(7pg13)
π
CREATE_TEXT_SEARCH_DICTIONARY β the 7pg13 manual π
okay so bestie, this is the CREATE_TEXT_SEARCH_DICTIONARY page from the PostgreSQL 13.23 Documentation. Itβs giving βdefine a whole new text search dictionaryβ energy, and honestly? iconic. Letβs go π¦
π NAME π
CREATE_TEXT_SEARCH_DICTIONARY β define a new text search dictionary.
π SYNOPSIS π
CREATE TEXT SEARCH DICTIONARY name (
TEMPLATE = template
[, option = value [, ... ]]
)
π¦ DESCRIPTION π¦
CREATE TEXT SEARCH DICTIONARY creates a new text search dictionary. A text search dictionary specifies a way of recognizing interesting or uninteresting words for searching. So basically itβs the thing that decides which words are main-character words for your search, and which ones are justβ¦ there π
A dictionary depends on a text search template, which specifies the functions that actually perform the work. And typically the dictionary provides some options that control the detailed behavior of the templateβs functions. tiny knobs, big slay β¨
If a schema name is given then the text search dictionary is created in the specified schema. Otherwise it is created in the current schema.
The user who defines a text search dictionary becomes its owner. π owner energy, fr fr.
Refer to Chapter 12 for further information.
πΈ PARAMETERS πΈ
nameβ the name of the text search dictionary to be created. The name can be schema-qualified. π«templateβ the name of the text search template that will define the basic behavior of this dictionary.optionβ the name of a template-specific option to be set for this dictionary.valueβ the value to use for a template-specific option. If the value is not a simple identifier or number, it must be quoted (but you can always quote it, if you wish). π
The options can appear in any order. no cap, order is not the vibe check here π
β¨ EXAMPLES β¨
The following example command creates a Snowball-based dictionary with a nonstandard list of stop words.
CREATE TEXT SEARCH DICTIONARY my_russian (
template = snowball,
language = russian,
stopwords = myrussian
);
π« COMPATIBILITY π«
There is no CREATE TEXT SEARCH DICTIONARY statement in the SQL standard. thatβs just how it is, bestie π
π SEE ALSO π
ALTER TEXT SEARCH DICTIONARY(ALTER_TEXT_SEARCH_DICTIONARY(7))DROP TEXT SEARCH DICTIONARY(DROP_TEXT_SEARCH_DICTIONARY(7))
xoxo, PostgreSQL 13.23 Documentation β dated 2025 π bye bestie, go define some dictionaries π«Άβ¨
π¦ 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