Tsearch2 - list of words or phrase with count - Mailing list pgsql-general

From Michal Hlavac
Subject Tsearch2 - list of words or phrase with count
Date
Msg-id 40FF748B.8070800@medium13.sk
Whole thread Raw
Responses Re: Tsearch2 - list of words or phrase with count
List pgsql-general
hello,

I have table with text attribute and fulltext index...

is it possible to do query with result:

word or phrase, count

for example:
SELECT word, my_count(word) FROM table WHERE expression.

   word    |   my_count
----------|------------
  'hello'  |      3
  'bye'    |      4
  'yellow' |      1
  'blue'   |      5

thanx, hlavki

--

[ miso hlavac ][ hlavki@medium13.sk ][ http://hlavki.sk ]
[ icq:94900232 ][ callto://hlavki ]

pgsql-general by date:

Previous
From: "Andrew Bartley"
Date:
Subject: Hex to char
Next
From: Oleg Bartunov
Date:
Subject: Re: Tsearch2 - list of words or phrase with count