From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Wei Weng <wweng(at)kencast(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: GiST and full text search |
Date: | 2003-09-22 16:55:09 |
Message-ID: | 200309221755.09838.dev@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Monday 22 September 2003 16:41, Wei Weng wrote:
> The production server uses PostgreSQL 7.3.1 right now, so I am only
> looking at contrib/tsearch.
>
> I read through the README file. It only seems to offer a way to FTS
> through one 'text' column in the table. How do I create a 'txtidx' column
> that combines two or even more 'text' columns in the table?
According to README.tsearch from 7.4beta (not tsearch2 which is the new one)
Current syntax allows creating trigger for several columns
you want to be searchable:
create trigger txtidxupdate before update or insert on titles
for each row execute procedure tsearch(titleidx, title1, title2,... );
Perhaps see what 7.3.4's tsearch says - that should be compatible with 7.3.1
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew J. Kopciuch | 2003-09-22 17:03:19 | Re: GiST and full text search |
Previous Message | Wei Weng | 2003-09-22 16:03:30 | Re: Using sql statements in file |