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

Scout 9 does not yet support PostgreSQL #7993

Closed
wants to merge 1 commit into from

Conversation

gregmartyn
Copy link

It looks like Scout 9 no longer has PostgreSQL support.

@taylorotwell
Copy link
Member

Need more information as to why it doesn't.

@gregmartyn
Copy link
Author

gregmartyn commented Jun 17, 2022

@taylorotwell linked to pmatseykanets/laravel-scout-postgres#48 in the updated doc. Without that, Scout doesn't work with PostgreSQL. You get: "Driver [pgsql] not supported." when doing a SomeModel::search($query)->get();

@gregmartyn
Copy link
Author

If you try using SCOUT_DRIVER=database, it "searches" using ILIKE % search term %, which isn't an indexed full text search. Postgres full text search uses the @@ operator. More on that here: https://www.postgresql.org/docs/current/functions-textsearch.html and the "stored generated column" part of https://www.postgresql.org/docs/current/textsearch-tables.html

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

Successfully merging this pull request may close these issues.

2 participants