Re: Add Space symbols for TSvector - Mailing list pgsql-general

From Arjen Nienhuis
Subject Re: Add Space symbols for TSvector
Date
Msg-id 11ddbd200906251418i3d810e0fnf1ee1c5fa183fb58@mail.gmail.com
Whole thread Raw
In response to Re: Add Space symbols for TSvector  (Henk van Lingen <H.G.K.vanLingen@uu.nl>)
List pgsql-general



> 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?


you can make function f(s) -> replace(replace(s, foo, bar), baz, bar)

and then search and index on f(s)

CREATE INDEX ... ON table ((f(s)));
SELECT s FROM table WHERE f(s) "matches?" '127.0.0.1';


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: planned recovery from a certain transaction
Next
From: Chris Spotts
Date:
Subject: Re: planned recovery from a certain transaction