From: Teodor Sigaev <teodor@sigaev.ru>
To: Oleg Bartunov <oleg@sai.msu.su>
To: Ferdinand Smit <ferdinand@telegraafnet.nl>
To: Pgsql Hackers <pgsql-hackers@postgresql.org>
To: pgsql-general <pgsql-general@postgresql.org>
To: pgsql-admin@postgresql.org
Subject: Re: Full textsearch & gist (fwd)
Date: Tue, 09 Dec 2003 16:18:20 +0300
Message-ID: <3FD5CB9C.3020005@sigaev.ru> (raw)
In-Reply-To: <Pine.GSO.4.58.0312091539460.14894@ra.sai.msu.su>
References: <Pine.GSO.4.58.0312091539460.14894@ra.sai.msu.su>
> ---------- Forwarded message ----------
> Date: Tue, 9 Dec 2003 12:55:55 +0100
> From: Ferdinand Smit <ferdinand@telegraafnet.nl>
> To: pgsql-admin@postgresql.org
> Subject: [ADMIN] Full textsearch & gist
>
> Hi,
>
> I'm experimenting with tsearch2. It works very good, but i have a few
> questions:
>
> - Is there a tsearch maillingslist ?
Full information about tsearch v1 and v2 are avaliable at
http://www.sai.msu.su/~megera/postgres/gist/tsearch/V2/>
> - How can i create a muticolumn index of an date and a text field, so i for
> example can textsearch in de last few days.
>
> CREATE INDEX test_ix ON test USING gist(date,tsvector);
> ERROR: data type date has no default operator class for access method "gist"
Install contrib/btree_gist, it contains GiST methods for 'timestamp without time
zone' datatype.
>
> - Does someone now how i can select the most used words, so i can create a
> stop file.
Tsearch v2 has stat function:
select * from stat('select TSVECTOR from TABLE') order by ndoc desc, nentry
desc, word;
Where TSVECTOR is name of column of tsvector type and TABLE is a table with
that column.
Warn: it works very slow.
--
Teodor Sigaev E-mail: teodor@sigaev.ru
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: teodor@sigaev.ru, oleg@sai.msu.su, ferdinand@telegraafnet.nl, pgsql-hackers@postgresql.org, pgsql-general@postgresql.org
Subject: Re: Full textsearch & gist (fwd)
In-Reply-To: <3FD5CB9C.3020005@sigaev.ru>
References: <Pine.GSO.4.58.0312091539460.14894@ra.sai.msu.su> <3FD5CB9C.3020005@sigaev.ru>
* 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