From: Richard Huxton <dev@archonet.com>
To: Wei Weng <wweng@kencast.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: GiST and full text search
Date: Mon, 22 Sep 2003 17:55:09 +0100
Message-ID: <200309221755.09838.dev@archonet.com> (raw)
In-Reply-To: <Pine.LNX.4.56.0309221139110.17838@localhost.localdomain>
References: <Pine.LNX.4.56.0309221100340.17381@localhost.localdomain>
<200309221624.01700.dev@archonet.com>
<Pine.LNX.4.56.0309221139110.17838@localhost.localdomain>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, wweng@kencast.com
Subject: Re: GiST and full text search
In-Reply-To: <200309221755.09838.dev@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox