BUG #13478: Simple dictionary does not check for stopwords

Started by Nonamealmost 11 years ago2 messagesbugs
Jump to latest
#1Noname
john.grant@suncast.co.uk

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Noname (#1)
Re: BUG #13478: Simple dictionary does not check for stopwords

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