tsearch2 issue

From: Matthew Cooke <matt(at)unrulymedia(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: dev(at)unrulymedia(dot)com
Subject: tsearch2 issue
Date: 2007-04-29 15:36:17
Message-ID: FE2A251A-1EF4-430A-AF35-34A1544BEF52@unrulymedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Anyone know why to_tsvector('sausages') might return "sausages" while
to_tsvector('default','sausages') correctly returns "sausag"?

This is causing me a fairly major headache as it seems the tsearch2()
function used by triggers is not specifying "default" which means
many words that are index are then subsequently not found.

I figure this may be something to do with locale settings, other info:

postgresql version 8.2.4 (upgraded from 8.2.0 by rpm on Fedora Core 6)

SELECT * from pg_ts_cfg;
ts_name | prs_name | locale
-----------------+----------+--------------
default_russian | default | ru_RU.KOI8-R
utf8_russian | default | ru_RU.UTF-8
simple | default | en_US.UTF-8
default | default | en_US.UTF-8

lc_collate | en_US.UTF-8
lc_ctype | en_US.UTF-8
lc_messages | en_US.UTF-8
lc_monetary | en_US.UTF-8
lc_numeric | en_US.UTF-8
lc_time | en_US.UTF-8

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Staubo 2007-04-29 17:27:30 Re: DRI in Docs?
Previous Message Rich Shepard 2007-04-29 14:43:52 Re: Temporal Units