CREATE_TEXT_SEARCH_DICTIONARY(7pg13)

πŸ“¦ version 13.23, in opensuse-leap 16.0

πŸ’… 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 πŸŽ€


xoxo, PostgreSQL 13.23 Documentation β€” dated 2025 πŸ’– bye bestie, go define some dictionaries 🫢✨

πŸ“¦ where this page comes from