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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: john(dot)grant(at)suncast(dot)co(dot)uk
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #13478: Simple dictionary does not check for stopwords
Date: 2015-06-30 22:38:15
Message-ID: 4587.1435703895@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

john(dot)grant(at)suncast(dot)co(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2015-06-30 22:49:18 Re: BUG #13479: Doc contains dead link
Previous Message Alvaro Herrera 2015-06-30 19:43:58 Re: BUG #13479: Doc contains dead link