Re: [GENERAL] Tsearch2 ranking

2006-03-13 Thread Teodor Sigaev
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

Re: [GENERAL] Tsearch2 ranking

2006-03-13 Thread Oleg Bartunov
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

Re: [GENERAL] Tsearch2 ranking

2006-03-13 Thread Hannes Dorbath
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