TSearch and rankings

From: "Bas Scheffers" <bas(at)scheffers(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: TSearch and rankings
Date: 2004-02-09 14:21:03
Message-ID: 44926.212.124.229.3.1076336463.squirrel@io.scheffers.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

Is there a way to use tsearch so that it returns documents that have less
than all the required keywords? The idea is that if a document only has 3
out of 4 terms, it is still returned, but with a lower ranking.

So far I haven't found a way to do this in the documentation. Is there
something like a "maybe" operator? (ie: 'foo&bar&~doh', meaning documents
with foo and bar, and optionaly doh, but those with would be ranked
higher)

Cheers,
Bas.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Teodor Sigaev 2004-02-09 14:40:07 Re: TSearch and rankings
Previous Message Jan Poslusny 2004-02-09 14:10:10 Re: functions and temporary tables