PHPackages                             survos/search-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. survos/search-bundle

ActiveSymfony-bundle[Search &amp; Filtering](/categories/search)

survos/search-bundle
====================

Field-driven Symfony UX search adapters, including SQLite FTS5 and PostgreSQL BM25 backends.

2.7.2(1w ago)033↑650%MITPHPPHP ^8.4

Since May 18Pushed 2d agoCompare

[ Source](https://github.com/survos/search-bundle)[ Packagist](https://packagist.org/packages/survos/search-bundle)[ GitHub Sponsors](https://github.com/kbond)[ RSS](/packages/survos-search-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (32)Versions (19)Used By (0)

Survos Search Bundle
====================

[](#survos-search-bundle)

Reusable field-driven search for Symfony applications.

This bundle is intentionally a bridge:

- `survos/field-bundle` remains the source of truth for field metadata.
- `mezcalito/ux-search` provides the Live Component UI, query state, facets, pagination, and result rendering.
- `survos/search-bundle` adds field-driven configuration and database-native BM25 adapters.

Why not `ux-search-extras`?
---------------------------

[](#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
------------------

[](#search-from-fields)

Create a search class and point it at an entity or DTO class with `#[Field]` metadata:

```
use Survos\FolioBundle\Entity\Row;
use Survos\SearchBundle\Search\AbstractFieldSearch;
use Mezcalito\UxSearchBundle\Attribute\AsSearch;

#[AsSearch(index: Row::class, adapter: 'folio_fts')]
final class FolioRowSearch extends AbstractFieldSearch
{
    protected function getFieldClass(array $options = []): string
    {
        return Row::class;
    }

    public function build(array $options = []): void
    {
        parent::build($options);

        $this->setAdapterParameters([
            'table' => 'item',
            'ftsTable' => 'item_fts',
            'idColumn' => 'id',
            'labelColumn' => 'label',
            'contentColumns' => ['label', 'dto_data', 'extras'],
            'where' => 'core_id = :core',
            'params' => ['core' => $options['coreId']],
        ]);
    }
}
```

Then render with Mezcalito's component:

```

```

SQLite FTS5
-----------

[](#sqlite-fts5)

Configure Mezcalito UX Search with this bundle's adapter:

```
mezcalito_ux_search:
    default_adapter: folio_fts
    adapters:
        folio_fts: 'sqlite-fts5://folio'
```

The DSN host is the Doctrine connection name. The adapter uses DBAL and SQLite FTS5:

- `MATCH` for full-text filtering
- `bm25(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
---------------

[](#postgresql-bm25)

Configure:

```
mezcalito_ux_search:
    adapters:
        pg_bm25: 'postgres-bm25://default'
```

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
---------------

[](#folio-direction)

Do not add the search code to `folio-bundle`. Folio should consume this bundle by:

1. Creating/maintaining FTS5 tables next to folio SQLite tables.
2. Marking searchable/filterable folio row fields with `#[Field]` on DTOs or search-facing row models.
3. Creating small search classes that bind folio context (`core_id`, `dto_type`) into adapter parameters.

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance99

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

18

Last Release

11d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/21b39551f92ed4143772c622f9e571589c5a72c96ab3c53fe67489ce0d83e806?d=identicon)[tacman1123](/maintainers/tacman1123)

---

Top Contributors

[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/survos-search-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/survos-search-bundle/health.svg)](https://phpackages.com/packages/survos-search-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M370](/packages/easycorp-easyadmin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M195](/packages/sulu-sulu)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9017.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
