Re: not officially documented use of setweight?? - Mailing list pgsql-general

From Ivan Sergio Borgonovo
Subject Re: not officially documented use of setweight??
Date
Msg-id 20100125150708.5f279565@dawn.webthatworks.it
Whole thread Raw
In response to not officially documented use of setweight??  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
List pgsql-general
On Mon, 25 Jan 2010 12:01:04 +0100
Ivan Sergio Borgonovo <mail@webthatworks.it> wrote:

> I think I've learned how to use pg text search from Oleg and Teodor
> documentation since I've found on my code this use of setweight:
>
> query := query &&
>   setweight(configuration, 'banana apple orange', 'B', '&');
>
> But I can't find any trace of this use in official postgres docs.
> The docs just says:
>
> setweight(vector tsvector, weight "char") returns tsvector
>
> Am I missing them? Is that use "supported" in future versions?

Forgive me!

setweight(cfg, text, weight, op) was actually one of my creations of
1 or 2 years ago using ts_debug.
I got mad looking for it in pg sources... till suddently I tought to
grep my codebase!!!

Since I had not previously processed user input using ts_debug was
fine. Now I've already processed tsvectors... so I'm writing
something that basically do the above but starting from preprocessed
tsvectors in spite of text.

Sorry.

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


pgsql-general by date:

Previous
From: Greg Stark
Date:
Subject: Re: Questions about connection clean-up and "invalid page header"
Next
From: Stefan Schwarzer
Date:
Subject: Re: Make & Install contrib/tablefunc Problems