Re: Rank based on the number of matching OR fields?

Поиск
Список
Период
Сортировка
От François Beausoleil
Тема Re: Rank based on the number of matching OR fields?
Дата
Msg-id DB506A88-B843-426C-96AC-05284B8804FD@teksol.info
обсуждение исходный текст
Ответ на Rank based on the number of matching OR fields?  ("W. Matthew Wilson" <matt@tplus1.com>)
Список pgsql-general

Le 2012-09-25 à 14:16, W. Matthew Wilson a écrit :

I want to run a query like to_tsquery("A | B | C") and then rank the
results so that if a document contained A, B, and C, then it would
rank above a document that just had some subset.

How would I do such a thing?

http://www.postgresql.org/docs/current/static/textsearch-controls.html#TEXTSEARCH-RANKING

Hope that helps,
François Beausoleil

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

Предыдущее
От: "W. Matthew Wilson"
Дата:
Сообщение: Rank based on the number of matching OR fields?
Следующее
От: Scot Kreienkamp
Дата:
Сообщение: idle in transaction query makes server unresponsive