Обсуждение: BUG #13478: Simple dictionary does not check for stopwords

Поиск
Список
Период
Сортировка

BUG #13478: Simple dictionary does not check for stopwords

От
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}

Re: BUG #13478: Simple dictionary does not check for stopwords

От
Tom Lane
Дата:
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