Re: TSearch and rankings

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: TSearch and rankings
Дата
Msg-id 40279BC7.9060400@sigaev.ru
обсуждение исходный текст
Ответ на TSearch and rankings  ("Bas Scheffers" <bas@scheffers.net>)
Ответы Re: TSearch and rankings  ("Bas Scheffers" <bas@scheffers.net>)
Список pgsql-general

Bas Scheffers wrote:
> 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)



(foo&bar)|(foo&bar&doh)

I think, it's what you want.


--
Teodor Sigaev                                  E-mail: teodor@sigaev.ru

В списке pgsql-general по дате отправления:

Предыдущее
От: "Bas Scheffers"
Дата:
Сообщение: TSearch and rankings
Следующее
От: "Bas Scheffers"
Дата:
Сообщение: Re: TSearch and rankings