Add Space symbols for TSvector

From: Henk van Lingen <H(dot)G(dot)K(dot)vanLingen(at)uu(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Subject: Add Space symbols for TSvector
Date: 2009-06-25 08:46:46
Message-ID: 20090625084646.GB13009@uu.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi,

How can I add a character as space symbol for the full text search indexes?

I'm adding firewall syslog lines in a database (8.3.7), and have a GIN
index on the message field. I'd like the slash considered a space symbol,
so i can search for IPnumbers in test like

world/123.456.192.46(0) -> some-fwsm/123.456.221.121(0)

Regards,
--
Henk van Lingen, (o- -+
Netwerk & Telefonie, ICT Service Center /\ |
Universiteit Utrecht, Jenalaan 18a, kamer 1.40 v_/_
http://henk.vanlingen.net/ http://www.tuxtown.net/netiquette/

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Oleg Bartunov 2009-06-25 09:05:41 Re: Add Space symbols for TSvector
Previous Message Albe Laurenz 2009-06-25 08:18:11 Re: Bug in ecpg lib ?