laravel-scout-postgres icon indicating copy to clipboard operation
laravel-scout-postgres copied to clipboard

Score for rows

Open ahmdkamal opened this issue 4 years ago • 1 comments

how do I know the score for each row?

ahmdkamal avatar Feb 23 '21 20:02 ahmdkamal

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/

devNoiseConsulting avatar Jul 25 '22 17:07 devNoiseConsulting