Search Postgresql Archives

Re: not officially documented use of setweight??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 25 Jan 2010 12:01:04 +0100
Ivan Sergio Borgonovo <mail@xxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux