Tsearch2 ranking

From: Hannes Dorbath <light(at)theendofthetunnel(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Tsearch2 ranking
Date: 2006-03-13 11:38:32
Message-ID: dv3le4$pqe$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2 rows of tsvector:

'bar':2 'baz':3 'foo':1
'bar':2 'baz':1 'foo':3

so source text was:

foo bar baz
baz bar foo

ts_query now is 'foo&baz&baz', so both matched.

How can I honor the correct order of the first row and rank it higher?
The position information is there, why doesn't rank() / rank_cd() not
use it?

Is there any way to make a difference between those to rows? Any? Even
if it's a bad hack? I really need it :/

Thanks in advance

--
Regards,
Hannes Dorbath

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hannes Dorbath 2006-03-13 11:40:30 Re: Tsearch2 ranking
Previous Message Martijn van Oosterhout 2006-03-13 10:40:28 Re: ERROR: FULL JOIN is only supported with merge-joinable join conditions