3 -- text search configuration for _LANGNAME_ language
4 CREATE TEXT SEARCH DICTIONARY _DICTNAME_
5 (TEMPLATE = snowball
, Language = _LANGNAME_ _STOPWORDS_
);
7 COMMENT ON TEXT SEARCH DICTIONARY _DICTNAME_
IS 'snowball stemmer for _LANGNAME_ language';
9 CREATE TEXT SEARCH CONFIGURATION _CFGNAME_
12 COMMENT ON TEXT SEARCH CONFIGURATION _CFGNAME_
IS 'configuration for _LANGNAME_ language';
14 ALTER TEXT SEARCH CONFIGURATION _CFGNAME_
ADD MAPPING
15 FOR email
, url
, url_path
, host, file, version,
16 sfloat
, float, int, uint
,
17 numword
, hword_numpart
, numhword
20 ALTER TEXT SEARCH CONFIGURATION _CFGNAME_
ADD MAPPING
21 FOR asciiword
, hword_asciipart
, asciihword
24 ALTER TEXT SEARCH CONFIGURATION _CFGNAME_
ADD MAPPING
25 FOR word
, hword_part
, hword
26 WITH _NONASCDICTNAME_
;