On Mon, 25 Jan 2010 12:01:04 +0100
Ivan Sergio Borgonovo <m...@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


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

Reply via email to