Normalized Ranking example incorrect in text search

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Normalized Ranking example incorrect in text search
Дата
Msg-id 1195021491.4378.71.camel@ebony.site
обсуждение исходный текст
Ответы Re: Normalized Ranking example incorrect in text search  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
http://developer.postgresql.org/pgdocs/postgres/textsearch-controls.html
Ranking Search Results

shows and example which says

"This is the same example using normalized ranking"

and then gives a query which calculates normalization in an incorrect
manner, yet without using the normalization parameter. A correct example
would be something like this:

SELECT title, ts_rank_cd(textsearch, query, 8 /*Normalization*/) AS rank
FROM apod, to_tsquery('neutrino|(dark & matter)') query
WHERE query @@ textsearch
ORDER BY rank DESC LIMIT 10;

I can't rerun the query because I don't have the example data set used.
Is that available?

This section also describes the two ranking functions supplied and
suggests you can write your own also.
- Can we say what the differences are between the two ranking functions?
Why do we have two?
- Can we supply or link to an example ranking function to allow people
to write their own?

--
  Simon Riggs
  2ndQuadrant  http://www.2ndQuadrant.com


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Obsolete references to GBorg in documentation
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Obsolete references to GBorg in documentation