Fix oversight in previous error-reporting patch; mustn't pfree path string
[PostgreSQL.git] / src / backend / snowball / snowball.sql.in
blob3a72d5fed1d732aca2260f0146ff2f7fae16e8b3
1 -- $PostgreSQL$$
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_
10 (PARSER = default);
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
18 WITH simple;
20 ALTER TEXT SEARCH CONFIGURATION _CFGNAME_ ADD MAPPING
21 FOR asciiword, hword_asciipart, asciihword
22 WITH _ASCDICTNAME_;
24 ALTER TEXT SEARCH CONFIGURATION _CFGNAME_ ADD MAPPING
25 FOR word, hword_part, hword
26 WITH _NONASCDICTNAME_;