Re: tsvector extraction patch

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mike Rylander <mrylander(at)gmail(dot)com>
Cc: Hans-Juergen Schoenig -- PostgreSQL <postgres(at)cybertec(dot)at>, pgsql-hackers(at)postgresql(dot)org, zb(at)cybertec(dot)at
Subject: Re: tsvector extraction patch
Date: 2009-07-08 19:38:15
Message-ID: 20090708193815.GN5053@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mike Rylander escribió:
> On Fri, Jul 3, 2009 at 3:49 AM, Hans-Juergen Schoenig --
> PostgreSQL<postgres(at)cybertec(dot)at> wrote:

> > test=# SELECT * FROM tsvcontent(to_tsvector('english', 'i am pretty sure
> > this is a good patch'));
> > lex   | rank
> > --------+------
> > good   |    8
> > patch  |    9
> > pretti |    3
> > sure   |    4
> > (4 rows)
> >
>
> This looks very useful! I wonder if providing a "weight" column would
> be relatively simple? I think this would present problems with the
> cast-to-text[] idea that Peter suggests, though.

Where would the weight come from?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Gierth 2009-07-08 20:01:28 hstore patch
Previous Message Tom Lane 2009-07-08 18:51:13 Re: Does EXEC_BACKEND mode still need to propagate setlocale settings?