From: | Henk van Lingen <H(dot)G(dot)K(dot)vanLingen(at)uu(dot)nl> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Add Space symbols for TSvector |
Date: | 2009-06-25 09:22:41 |
Message-ID: | 20090625092241.GC13009@uu.nl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Jun 25, 2009 at 01:05:41PM +0400, Oleg Bartunov wrote:
>>
>> 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)
>
> preprocess text, for example, using replace(), regexp_replace() functions
Oke, you mean at the time the insert in de db is done, i suppose.
However, I'm using the new syslog-ng 3 feature which does the
insert directly. So I have to change the syslogd for that.
I understand the ts_search parser is not configurable?
Thanks,
--
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/
From | Date | Subject | |
---|---|---|---|
Next Message | Jasen Betts | 2009-06-25 09:26:14 | Re: Replication |
Previous Message | Miao Jiang | 2009-06-25 09:12:39 | why the similar query takes so difference time in tsearch2? |