Re: tsearch2 for alphabetic character strings & codes

From: "Andrew J(dot) Kopciuch" <akopciuch(at)bddf(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: tsearch2 for alphabetic character strings & codes
Date: 2005-09-24 09:31:56
Message-ID: 200509240331.57223.akopciuch@bddf.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Saturday 24 September 2005 00:09, Oleg Bartunov wrote:
> Ron,
>
> probably you need to write custom parser. tsearch2 supports
> different parsers.
>

To expand somewhat on what Oleg mentioned, you can find a howto on writing a
custom parser here :

http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/docs/HOWTO-parser-tsearch2.html

This example might be exactly what you are looking for, I did not look into it
too much myself though, but it appears to just split on whitespace.

There is lots of documentation, examples, help, and other goodies for tsearch2
here:

http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/

HTH,

Andy

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Poul Møller Hansen 2005-09-24 09:48:47 Slow connection to the database
Previous Message Oleg Bartunov 2005-09-24 06:09:32 Re: tsearch2 for alphabetic character strings & codes