ALTER TEXT SEARCH DICTIONARY modifies the definition of a full-text retrieval dictionary, including its parameters, name, owner, and schema.
1 2 3 | ALTER TEXT SEARCH DICTIONARY name ( option [ = value ] [, ... ] ); |
1 | ALTER TEXT SEARCH DICTIONARY name RENAME TO new_name; |
1 | ALTER TEXT SEARCH DICTIONARY name SET SCHEMA new_schema; |
1 | ALTER TEXT SEARCH DICTIONARY name OWNER TO new_owner; |
Specifies the name of an existing dictionary. (If you do not specify a schema name, the dictionary in the current schema will be used.)
Value range: name of an existing dictionary
Specifies the name of a parameter to be modified. Each type of dictionaries has a template containing their custom parameters. Parameters function in a way irrelevant to their setting sequence. For details about parameters, see option.
Specifies the new value of a parameter. If = and value are omitted, the previous settings of the parameter will be deleted and the default value will be used.
Value range: valid values defined for the parameter
Specifies the new name of a dictionary.
Value range: a string, which complies with the identifier naming convention. A value can contain a maximum of 63 characters.
Specifies the new owner of a dictionary.
Value range: an existing user name
Specifies the new schema of a dictionary.
Value range: an existing schema name
Modify the definition of stop words in Snowball dictionaries. Retain the values of other parameters.
1 | ALTER TEXT SEARCH DICTIONARY my_dict ( StopWords = newrussian, FilePath = 'obs://bucket_name/path accesskey=ak secretkey=sk region=rg' ); |
Modify the Language parameter in Snowball dictionaries and delete the definition of stop words.
1 | ALTER TEXT SEARCH DICTIONARY my_dict ( Language = dutch, StopWords ); |
Update the dictionary definition and do not change any other content.
1 | ALTER TEXT SEARCH DICTIONARY my_dict ( dummy ); |