Repository navigation
Built-in search on PostgreSQL #5138
hrishikesh-k
started this conversation in
Ideas
Replies: 2 comments
|
Design PR #5140 proposes |
0 replies
|
I think this would be great to add |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Built-in search currently works only on SQLite, D1, and libSQL. On PostgreSQL, every search endpoint returns 503 SEARCH_UNAVAILABLE, which means there's no search at all - not through search(), suggestions, or the admin UI. Site imports into PostgreSQL sites also disable search.
PostgreSQL is already a supported EmDash database and has built-in full-text search, but EmDash currently does not support it.
Use case
I'm building a Netlify adapter for EmDash, and Netlify Database uses PostgreSQL. Without built-in search support, every EmDash site running on Netlify would be missing search out of the box.
This also affects anyone choosing PostgreSQL for their EmDash site, particularly when running multiple Node.js servers against the same database.
Current workarounds
I've already prototyped an opt-in PostgreSQL search backend in a fork. It uses PostgreSQL's built-in full-text search, preserves the existing search API and query syntax, and has been tested against PostgreSQL 18 and a live Netlify Database.
Your involvement
All reactions