Re: Turning off automatic ranking on words

From: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
To: James Dooley <jamdooley(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Turning off automatic ranking on words
Date: 2009-02-06 12:37:54
Message-ID: Pine.LNX.4.64.0902061536530.4158@sn.sai.msu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

It's documented,

test=# select strip( to_tsvector('simple','to be or not to be'));
strip
----------------------
'be' 'or' 'to' 'not'
(1 row)

On Fri, 6 Feb 2009, James Dooley wrote:

> Hi,
>
> How can I turn off the positioning since I won't be needing it.
>
> SELECT to_tsvector('english','in the list of stop words');
> to_tsvector
> ----------------------------
> 'list':3 'stop':5 'word':6
>
> I don't need to store the positions as shown in the example because I rank
> according to date/price etc..
>
> Thank you, James
>

Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru)
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2009-02-06 13:53:25 Re: Pet Peeves?
Previous Message James Dooley 2009-02-06 12:21:04 Turning off automatic ranking on words