laravel-scout-postgres
laravel-scout-postgres copied to clipboard
Score for rows
how do I know the score for each row?
Getting a score for a row is pretty Postgres specific. It looks like it could be calculated with ts_rank() or ts_rank_cd(), but I'm not sure how you work that into the model or eloquent query.
https://www.postgresql.org/docs/9.5/textsearch-controls.html#TEXTSEARCH-RANKING https://bigmachine.io/2019/10/29/fine-tuning-full-text-search-with-postgresql-12/