Order of terms in ts_query hasn't any meaning in current implementation. But you
can use your own ranking function.
Hannes Dorbath wrote:
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 ma
On Mon, 13 Mar 2006, Hannes Dorbath wrote:
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 inf
ts_query now is 'foo&bar&baz'
Sorry, typo.
On 13.03.2006 12:38, Hannes Dorbath wrote:
ts_query now is 'foo&baz&baz', so both matched.
--
Regards,
Hannes Dorbath
---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster