Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Score for rows #45

Open
ahmdkamal opened this issue Feb 23, 2021 · 1 comment
Open

Score for rows #45

ahmdkamal opened this issue Feb 23, 2021 · 1 comment

Comments

@ahmdkamal
Copy link

how do I know the score for each row?

@devNoiseConsulting
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants