2 ALTER TEXT SEARCH DICTIONARY
4 ALTER TEXT SEARCH DICTIONARY — change the definition of a text search
9 ALTER TEXT SEARCH DICTIONARY name (
10 option [ = value ] [, ... ]
12 ALTER TEXT SEARCH DICTIONARY name RENAME TO new_name
13 ALTER TEXT SEARCH DICTIONARY name OWNER TO { new_owner | CURRENT_ROLE | CURRENT_
15 ALTER TEXT SEARCH DICTIONARY name SET SCHEMA new_schema
19 ALTER TEXT SEARCH DICTIONARY changes the definition of a text search
20 dictionary. You can change the dictionary's template-specific options,
21 or change the dictionary's name or owner.
23 You must be the owner of the dictionary to use ALTER TEXT SEARCH
29 The name (optionally schema-qualified) of an existing text
33 The name of a template-specific option to be set for this
37 The new value to use for a template-specific option. If the
38 equal sign and value are omitted, then any previous setting for
39 the option is removed from the dictionary, allowing the default
43 The new name of the text search dictionary.
46 The new owner of the text search dictionary.
49 The new schema for the text search dictionary.
51 Template-specific options can appear in any order.
55 The following example command changes the stopword list for a
56 Snowball-based dictionary. Other parameters remain unchanged.
57 ALTER TEXT SEARCH DICTIONARY my_dict ( StopWords = newrussian );
59 The following example command changes the language option to dutch, and
60 removes the stopword option entirely.
61 ALTER TEXT SEARCH DICTIONARY my_dict ( language = dutch, StopWords );
63 The following example command “updates” the dictionary's definition
64 without actually changing anything.
65 ALTER TEXT SEARCH DICTIONARY my_dict ( dummy );
67 (The reason this works is that the option removal code doesn't complain
68 if there is no such option.) This trick is useful when changing
69 configuration files for the dictionary: the ALTER will force existing
70 database sessions to re-read the configuration files, which otherwise
71 they would never do if they had read them earlier.
75 There is no ALTER TEXT SEARCH DICTIONARY statement in the SQL standard.
79 CREATE TEXT SEARCH DICTIONARY, DROP TEXT SEARCH DICTIONARY