Rank
ts_rank scores how well a document matches a query, from word frequency. Order by it descending and break ties on a stable column so the result is repeatable.
task
The top 5 articles for 'harbour' by ts_rank (ties by id).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
ts_rank scores how well a document matches a query, from word frequency. Order by it descending and break ties on a stable column so the result is repeatable.
The top 5 articles for 'harbour' by ts_rank (ties by id).