ALTER TEXT SEARCH DICTIONARY

Function

Modifies the definition of a full-text retrieval dictionary, including its parameters, name, owner, and schema.

Precautions

Syntax

Parameter Description

Examples

CREATE TEXT SEARCH DICTIONARY my_dict (
    TEMPLATE = snowball,
    Language = english,
    StopWords = english 
);

Modify the definition of stop words in Snowball dictionaries. Retain the values of other parameters.

Hard-coded or plaintext AK and SK are risky. For security purposes, encrypt your AK and SK and store them in the configuration file or environment variables.

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 );

Helpful Links

CREATE TEXT SEARCH DICTIONARY, DROP TEXT SEARCH DICTIONARY