Re: full text index and most frequently used words

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: Bryan Murphy <bryan(dot)murphy(at)gmail(dot)com>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: full text index and most frequently used words
Date: 2008-02-08 18:35:38
Message-ID: 47ACA0FA.7020401@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> What I'd like to know is if there is an easy to way to use the full
> text index to generate a list of the most common words. I could write
> this code manually, but I'm hoping there's a better (simpler) way.

For 8.3
http://www.postgresql.org/docs/8.3/static/textsearch-features.html#TEXTSEARCH-STATISTICS

For versions before 8.3 just use stat() function instead of ts_stat().
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru
WWW: http://www.sigaev.ru/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2008-02-08 20:00:12 Re: ERROR: COPY quote must be a single ASCII character
Previous Message luca.ciciriello 2008-02-08 18:33:16 Re: hyperthreading and pqlib