Re: not officially documented use of setweight??

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: not officially documented use of setweight??
Date: 2010-01-25 14:07:08
Message-ID: 20100125150708.5f279565@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 25 Jan 2010 12:01:04 +0100
Ivan Sergio Borgonovo <mail(at)webthatworks(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Schwarzer 2010-01-25 15:05:57 Re: Make & Install contrib/tablefunc Problems
Previous Message Greg Stark 2010-01-25 13:56:53 Fwd: Questions about connection clean-up and "invalid page header"