ddmaster/postgre-search-bundle
Avoid If:
tsvector/tsquery syntax may prefer higher-level abstractions (e.g., TNTSearch for Laravel).Consider Alternatives If:
"This package lets us leverage PostgreSQL’s built-in full-text search to power fast, cost-effective search features—without third-party dependencies. For example, we could add instant product search to our e-commerce platform or improve content discovery in our blog, reducing infrastructure costs by eliminating Elasticsearch clusters or Algolia subscriptions. It’s a low-risk way to enhance user experience while keeping our stack simple and scalable for our current traffic levels. Since it’s MIT-licensed and integrates seamlessly with our existing Symfony/Laravel + PostgreSQL setup, it aligns with our tech debt reduction goals."
Key Metrics to Highlight:
*"This bundle bridges Symfony’s Doctrine ORM with PostgreSQL’s full-text search, enabling us to:
tsvector columns to entities for indexed search (e.g., Article table).TSQUERY and TSRANK directly in queries, e.g.:
$query = $em->createQuery(
'SELECT a, TSRANK(a.searchVector, :query) AS rank
FROM App\Entity\Article a
WHERE a.searchVector @@ :query
ORDER BY rank DESC'
);
Trade-offs:
pg_catalog.english dictionary).Recommendation:
pg_trgm: Extend for fuzzy search (e.g., typo tolerance) if needed.Example Use Case: "For our internal analytics dashboard, this could replace a slow LIKE-based search with sub-100ms response times for 10K+ records, using PostgreSQL’s built-in ranking."
How can I help you explore Laravel packages today?