Skip to content

Add PostgreSQL search engine to Scout#998

Draft
WendellAdriel wants to merge 27 commits into
11.xfrom
feat/pg-native-fullsearch
Draft

Add PostgreSQL search engine to Scout#998
WendellAdriel wants to merge 27 commits into
11.xfrom
feat/pg-native-fullsearch

Conversation

@WendellAdriel

@WendellAdriel WendellAdriel commented Jun 11, 2026

Copy link
Copy Markdown
Member

This adds a native PostgreSQL search engine to Laravel Scout, giving applications that already run on PostgreSQL a way to perform full-text (and optional trigram similarity) search without standing up a separate search service.

The engine is registered as the pgsql driver and uses PostgreSQL's built-in tsvector / tsrank functions for indexing and ranking. It optionally blends trigram similarity when the pg_trgm extension is available, configurable via the same scout.php config file used by the other drivers.

Documentation: laravel/docs#11235

Comment thread tests/Integration/PgsqlSearchableTest.php Outdated
Comment thread src/Pgsql/Trigram.php Outdated
Comment thread src/Pgsql/Trigram.php

@benbjurstrom benbjurstrom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks really good, only left a couple of notes. Nice work!

Comment thread config/scout.php Outdated
Comment thread config/scout.php Outdated
Comment thread config/scout.php
Comment thread src/Pgsql/Trigram.php
Comment thread config/scout.php Outdated
Comment thread .github/workflows/pgsql.yml Fixed
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.

5 participants