Turning off automatic ranking on words

Started by James Dooleyabout 17 years ago2 messagesgeneral
Jump to latest
#1James Dooley
jamdooley@gmail.com

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

#2Oleg Bartunov
oleg@sai.msu.su
In reply to: James Dooley (#1)
Re: Turning off automatic ranking on words

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@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83