RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: digitalheir
Thanks! This works great.
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
Thanks! This works great.
Here is a presentation that says instead of
use
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