X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D9D3BD1B4DB; Tue, 9 Dec 2003 13:19:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 25705-04; Tue, 9 Dec 2003 09:18:38 -0400 (AST) Received: from xor.sigaev.ru (xor.sai.msu.ru [212.192.243.97]) by svr1.postgresql.org (Postfix) with ESMTP id E8B23D1B4D1; Tue, 9 Dec 2003 09:18:26 -0400 (AST) Received: from sigaev.ru (localhost [127.0.0.1]) by xor.sigaev.ru (8.12.9/8.12.9) with ESMTP id hB9DIKvE009271; Tue, 9 Dec 2003 16:18:20 +0300 (MSK) (envelope-from teodor@sigaev.ru) Message-ID: <3FD5CB9C.3020005@sigaev.ru> Date: Tue, 09 Dec 2003 16:18:20 +0300 From: Teodor Sigaev User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031020 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oleg Bartunov , Ferdinand Smit , Pgsql Hackers , pgsql-general , pgsql-admin@postgresql.org Subject: Re: Full textsearch & gist (fwd) References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/114 X-Sequence-Number: 11623 > ---------- Forwarded message ---------- > Date: Tue, 9 Dec 2003 12:55:55 +0100 > From: Ferdinand Smit > 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