Re: ts_rank

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Oleg Bartunov <oleg(at)sai(dot)msu(dot)su>
Cc: Mark <Marek(dot)Balgar(at)seznam(dot)cz>, pgsql-hackers(at)postgresql(dot)org, Teodor Sigaev <teodor(at)sigaev(dot)ru>
Subject: Re: ts_rank
Date: 2011-10-13 18:17:48
Message-ID: 201110131817.p9DIHmi11048@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Oleg Bartunov wrote:
> I'm sorry, my plane to Nepal is waiting me :) I'll be back in the
> midst of November. In short, ts_rank is based only on frequencies of lexems
> and doesn't count distance between query lexems. Also, it supports only
> primitive queries.

Thanks. Attached doc patch applied to head and 9.1.X.

---------------------------------------------------------------------------

>
> Oleg
> On Wed, 12 Oct 2011, Bruce Momjian wrote:
>
> > Bruce Momjian wrote:
> >> Mark wrote:
> >>>> There's some potentially useful information here:
> >>>> http://www.postgresql.org/docs/9.0/interactive/textsearch-controls.html#TEXTSEARCH-RANKING
> >>>
> >>> Thanks for reply. I was reading the documentation of PostgreSQL, but there
> >>> it is not written the name of the used methods. Everywhere there is written,
> >>> that ts_rank use standard ranking function. But it is difficult to say which
> >>> is the standard function.
> >>> Somewhere I found that it is maybe based on Vector space model and it seems
> >>> to be truth, because in the code of tsrank.c is counted the frequency of
> >>> words, but I am not sure of that :-(
> >>
> >> Oleg, Teodor, can you give me a description of how ts_rank decided how
> >> to rank items? Thanks.
> >
> > Any news on this question?
> >
> >
>
> 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

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

Attachment Content-Type Size
/rtmp/ts_rank text/x-diff 618 bytes

In response to

  • Re: ts_rank at 2011-10-13 11:23:14 from Oleg Bartunov

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2011-10-13 18:25:33 Re: pl/perl example in the doc no longer works in 9.1
Previous Message David E. Wheeler 2011-10-13 18:13:46 Re: pl/perl example in the doc no longer works in 9.1