RailsCasts Pro episodes are now free!

Learn more or hide this

Maarten's Profile

GitHub User: digitalheir

Comments by Maarten

Avatar

Here is a presentation that says instead of

WHERE fts @@ to_tsquery('english', 'query')
ORDER BY
ts_rank(fts, to_tsquery('english', 'query')) DESC

use

WHERE fts @@ to_tsquery('english', 'query')
ORDER BY
fts >< to_tsquery('english', 'query')

But the >< operator is not recognized by PostgreSQL? (Version 9.2)

EDIT: ah, later on it says it's going to be a 9.3 feature