setweight detailed doc was: Ranking search results using multiple fields in PostgreSQL fulltext search

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: Gaini Rajeshwar <raja(dot)rajeshwar2006(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: setweight detailed doc was: Ranking search results using multiple fields in PostgreSQL fulltext search
Date: 2009-10-12 16:37:40
Message-ID: 20091012183740.50374a48@dawn.webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 12 Oct 2009 20:02:16 +0530
Gaini Rajeshwar <raja(dot)rajeshwar2006(at)gmail(dot)com> wrote:

> > inputquery := setweight(cfg, inputtitle, 'A', '&');
> > inputquery := inputquery && setweight(cfg, inputsummary, 'B',
> > '&');

> I didn't understand why did u use '&' operator in setweight
> function. is that going to help in any way?

I don't understand it either...
I just copied and pasted from a working function I wrote long ago.

select setweight('pg_catalog.english', 'java', 'A', '&');

I can't remember what was the meaning of that '&' and I can't find
the docs.

Could someone point me to a more detailed doc that explain in more
details setweight?

thanks

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2009-10-12 16:45:26 Re: Re: [GENERAL] contrib/plantuner - enable PostgreSQL planner hints
Previous Message David Fetter 2009-10-12 16:30:33 Re: Nested transactions