Re: tsearch2 and case

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: "Uwe C(dot) Schroeder" <uwe(at)oss4u(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: tsearch2 and case
Date: 2005-07-04 20:49:59
Message-ID: 878y0muwi0.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> writes:

> > I'd like the search to be completely case insensitive. Can anyone point me in
> > the right direction?
>
> use your own dictionary ! Read gendict tutorial for details.
> http://www.sai.msu.su/~megera/oddmuse/index.cgi/Gendict
> I would create simple dictionary abbrev which recognize your abbreviations
> and use it first before any other dicts. btw, if you did it general enough
> please share with us, so other people could use it.

Do functional indexes interact well with tsearch? Couldn't you just make your
index on lower(col) and then do to_tsquery(lower('ABCD')) ?

--
greg

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2005-07-04 20:53:25 Re: Transparent i18n?
Previous Message Oleg Bartunov 2005-07-04 20:04:13 Re: tsearch2 and case