Complete the code to create a text search configuration using the English dictionary.
CREATE TEXT SEARCH CONFIGURATION my_config ( COPY = [1] );The english dictionary is used to create a text search configuration that supports English language processing.
Complete the code to add a mapping for the 'asciiword' token to use the 'english_stem' dictionary.
ALTER TEXT SEARCH CONFIGURATION my_config ALTER MAPPING FOR asciiword WITH [1];The english_stem dictionary applies stemming rules for English words, improving search matching.
Fix the error in the code to set the default text search configuration to 'my_config'.
SET default_text_search_config = [1];The configuration name must be a string literal, so it needs to be enclosed in single quotes.
Fill both blanks to create a text search dictionary using the 'snowball' template for the French language.
CREATE TEXT SEARCH DICTIONARY my_french_dict ( TEMPLATE = [1], Language = [2] );
The snowball template supports stemming for multiple languages, and french specifies the language for the dictionary.
Fill all three blanks to create a text search configuration that copies from 'pg_catalog.english', alters the mapping for 'word' tokens to use 'my_french_dict', and sets it as default.
CREATE TEXT SEARCH CONFIGURATION my_french_config ( COPY = [1] ); ALTER TEXT SEARCH CONFIGURATION my_french_config ALTER MAPPING FOR word WITH [2]; SET default_text_search_config = [3];
This sequence creates a configuration copying English settings, changes word token mapping to use the French dictionary, and sets the new configuration as default.