Re: not officially documented use of setweight??

Поиск
Список
Период
Сортировка
От Ivan Sergio Borgonovo
Тема Re: not officially documented use of setweight??
Дата
Msg-id 20100125150708.5f279565@dawn.webthatworks.it
обсуждение исходный текст
Ответ на not officially documented use of setweight??  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список 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 по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Questions about connection clean-up and "invalid page header"
Следующее
От: Stefan Schwarzer
Дата:
Сообщение: Re: Make & Install contrib/tablefunc Problems