Re: TSearch2 ... ignore word repetition for rank

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: cgg007(at)yahoo(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: TSearch2 ... ignore word repetition for rank
Date: 2004-01-09 17:54:33
Message-ID: 3FFEEAD9.8010805@sigaev.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Chris Gamache wrote:
> For my particular case, word repetition shouldn't be relevant in determining
> the rank of a document. If I strip() the vector, I loose what relevance
> proximity and weight add to the rank. It seems impossible, yet I ask anyway: Is
> it possible to eliminate the second (third, fourth, fifth, etc.) occurrence of
> any given word when its presence in the document is being scored, yet kept in
> the equation for modifications to the score when proximity is being considered?

I don't see the way except modify strip or rank functions...
--
Teodor Sigaev E-mail: teodor(at)sigaev(dot)ru

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Anton.Nikiforov 2004-01-09 19:05:06 Hierarchical queries
Previous Message Oleg Lebedev 2004-01-09 17:52:59 Re: deferring/disabling unique index