BUG #13478: Simple dictionary does not check for stopwords
The following bug has been logged on the website:
Bug reference: 13478
Logged by: John Grant
Email address: john.grant@suncast.co.uk
PostgreSQL version: 9.4.4
Operating system: Ubuntu & Windows
Description:
COMMENT ON TEXT SEARCH DICTIONARY simple IS 'simple dictionary: just lower
case and check for stopword';
The following command should return {}:
SELECT ts_lexize('simple','The');
Instead it returns {the}
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
john.grant@suncast.co.uk writes:
The following command should return {}:
SELECT ts_lexize('simple','The');
Instead it returns {the}
No, that's correct, because that dictionary instance hasn't been
configured with any stopword file. You need to define a dictionary
that's been connected to the stopword file you want, as in the example in
http://www.postgresql.org/docs/9.4/static/textsearch-dictionaries.html#TEXTSEARCH-SIMPLE-DICTIONARY
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs