php-fts
A pure PHP full-text search engine that needs no extensions or external services.
What does it do?
Version 2.0 replaces indexing documents in 3-character units with word indexing and uses a vocabulary index for typo-tolerant search. Search includes ranking based on frequency and length by field, prefix autocomplete, filters, facets, sorting, pagination, and result highlighting. Existing 1.x indexes are incompatible and must be rebuilt from the source data. It runs on PHP 8.1 or later without separate extensions or services.
Key features
- Word-based document indexing and vocabulary-based typo-tolerant search
- BM25F ranking that accounts for frequency and length by field
- Prefix autocomplete, filters, facets, sorting, pagination, and highlighting
- Runs on PHP 8.1 or later without extensions, dependencies, or a separate service
- Indexes from before 2.0 must be rebuilt from source data