Skip to main content

copy_from

Creates a new dictionary based on an existing one, with overridable options. Useful for creating variants without repeating the full definition.

Options

OptionTypeDefaultDescription
FROMstringrequiredName of the source dictionary to copy
any optionOverride any option from the source dictionary

Examples

Override case handling

CREATE TEXT SEARCH DICTIONARY english_upper (
TEMPLATE = 'copy_from',
FROM = 'english_dict',
CASE = 'upper'
);

Override pipeline step options

CREATE TEXT SEARCH DICTIONARY pipe_variant (
TEMPLATE = 'copy_from',
FROM = 'pipe_dict',
STEP1_DELIMITER = '|',
STEP2_CASE = 'upper'
);

Extend a pipeline with additional steps

CREATE TEXT SEARCH DICTIONARY pipe_extended (
TEMPLATE = 'copy_from',
FROM = 'pipe_dict',
STEP3_TEMPLATE = 'stopwords',
STEP3_STOPWORDS = '"bar","foo"'
);

Override nested minhash analyzer options

CREATE TEXT SEARCH DICTIONARY minhash_variant (
TEMPLATE = 'copy_from',
FROM = 'minhash_text',
ANALYZER_STOPWORDS = '"fox"'
);

See also