turning a tsvector without position in a weighted tsvector

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: postgresql Forums <pgsql-general(at)postgresql(dot)org>
Subject: turning a tsvector without position in a weighted tsvector
Date: 2010-02-08 19:14:41
Message-ID: 20100208201441.3352b11f@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

If I convert a string to a tsvector just casting (::tsvector) I
obtain a vector without positions.
tsvectors without positions don't have weights too.

I haven't found a way to turn a vector without weight/pos, into a
vector with weight/pos.

Is there a way to apply weight/add positions to tsvectors without
positions?
Is there any use-case?

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sharmila Jothirajah 2010-02-08 19:27:15 Manipulating Large Object datatype in Postgresql
Previous Message Tom Lane 2010-02-08 17:42:08 Re: second concurrent update takes forever