Download the PHP package survos/search-bundle without Composer
On this page you can find all versions of the php package survos/search-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download survos/search-bundle
More information about survos/search-bundle
Files in survos/search-bundle
Package search-bundle
Short Description Field-driven Symfony UX search adapters, including SQLite FTS5 and PostgreSQL BM25 backends.
License MIT
Informations about the package search-bundle
Survos Search Bundle
Reusable field-driven search for Symfony applications.
This bundle is intentionally a bridge:
survos/field-bundleremains the source of truth for field metadata.mezcalito/ux-searchprovides the Live Component UI, query state, facets, pagination, and result rendering.survos/search-bundleadds field-driven configuration and database-native BM25 adapters.
Why not ux-search-extras?
The bundle is not only an extension pack for Mezcalito UX Search. The center of gravity is Survos field metadata and portable search backends. survos/search-bundle leaves room for API/Grid/Meili bridges without implying that every feature is tied to Mezcalito internals.
Search From Fields
Create a search class and point it at an entity or DTO class with #[Field] metadata:
Then render with Mezcalito's component:
SQLite FTS5
Configure Mezcalito UX Search with this bundle's adapter:
The DSN host is the Doctrine connection name. The adapter uses DBAL and SQLite FTS5:
MATCHfor full-text filteringbm25(fts_table)for score- optional facet counts through normal SQL aggregation
Applications remain responsible for creating and maintaining the FTS5 virtual table. That is deliberate: folios, entities, and denormalized JSON payloads need different indexing strategies.
PostgreSQL BM25
Configure:
The first target is pg_textsearch, which provides PostgreSQL BM25 indexes. This bundle keeps the SQL configurable because pg_textsearch and ParadeDB pg_search expose different operators.
Folio Direction
Do not add the search code to folio-bundle. Folio should consume this bundle by:
- Creating/maintaining FTS5 tables next to folio SQLite tables.
- Marking searchable/filterable folio row fields with
#[Field]on DTOs or search-facing row models. - Creating small search classes that bind folio context (
core_id,dto_type) into adapter parameters.
All versions of search-bundle with dependencies
doctrine/dbal Version ^4.3
doctrine/doctrine-bundle Version ^2.14|^3.0
tacman/ux-search Version ^1.0
survos/kit-bundle Version ^2.5
survos/field-bundle Version ^2.5
symfony/config Version ^8.1
symfony/console Version ^8.1
symfony/dependency-injection Version ^8.1
symfony/http-kernel Version ^8.1
symfony/options-resolver Version ^8.1
symfony/service-contracts Version ^3.6
symfony/string Version ^8.1
symfony/ux-twig-component Version ^3.0
twig/twig Version ^3.4