Re: access to lexems or access to parsed elements

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: "Massa, Harald Armin" <harald(at)2ndQuadrant(dot)de>
Cc: "PGSQL Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: access to lexems or access to parsed elements
Date: 2011-08-26 12:46:05
Message-ID: ef96a465-029a-4ad4-b82c-9066ff7241cc@mm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Massa, Harald Armin wrote:

> select ts_parse('default','the quick brown fox jumped over the lazy fox')
>
> (1,the)
> (12," ")
> (1,quick)
> [...]
> (1,fox)
>
> is a set-returning-function, giving me 17 records of type pseudo-record.
> Stopwords still in there, so what. But: No chance of accessing the second
> field in that record.

What about:
select w from ts_parse('default','the quick brown fox jumped over the lazy
fox')
as lexems(i,w);

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2011-08-26 13:17:19 Re: Postgresql 9.0.4 SRPMS
Previous Message Condor 2011-08-26 12:44:15 Re: COPY FROM how long should take ?