Re: tsearch2 parser configuration

From: Hannes Dorbath <light(at)theendofthetunnel(dot)de>
To: Worky Workerson <worky(dot)workerson(at)gmail(dot)com>
Subject: Re: tsearch2 parser configuration
Date: 2007-02-07 08:12:38
Message-ID: 45C989F6.4000003@theendofthetunnel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06.02.2007 21:39, Worky Workerson wrote:
> Is it possible to configure the tsearch2 parser? I'd like a very dumb
> parser that splits on everything that is not [a-zA-Z0-9.]. The
> default parser seems to work well on my dataset except for the '/'
> character ... it doesn't split mike/john into two lexemes. And ideas?

Sure that's an ugly, but I'd just use:

SELECT to_tsvector(REPLACE('mike/john', '/', ' '));

and the same with to_tsquery();

--
Regards,
Hannes Dorbath

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2007-02-07 09:33:05 Re: Limit for number of Joins in a View? Version 8.1.4 on Redhat 9
Previous Message Oleg Bartunov 2007-02-07 05:30:27 Re: tsearch2 parser configuration