| From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
|---|---|
| To: | Hannes Dorbath <light(at)theendofthetunnel(dot)de> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Tsearch2 ranking |
| Date: | 2006-03-13 13:01:26 |
| Message-ID: | Pine.GSO.4.63.0603131556240.22593@ra.sai.msu.su |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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 information is there, why doesn't rank() / rank_cd() not use it?
There is a hint to do this. See "Phrase search" in
http://www.sai.msu.su/~megera/oddmuse/index.cgi/Tsearch_V2_Notes
>
> 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,
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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Claudio Tognolo | 2006-03-13 13:32:51 | Disability the trigger |
| Previous Message | Hannes Dorbath | 2006-03-13 11:40:30 | Re: Tsearch2 ranking |