v1.0.0 introduces a protocol-oriented text search and filtering library for Swift collections, with support for weighted fields, ranked results, and multi-word queries.
- Conform any model type via
SearchableandsearchableFields() - Assign
weightvalues to fields so high-priority matches rank first - Filter with
.any(at least one word matches) or.all(every word must match) token strategies rankedSearch(for:)returns results scored and sorted by relevance, with prefix matches scoring higher than substring matches- Case and diacritic insensitive matching out of the box
asyncoverloads for bothfilterandrankedSearchto keep large searches off the main actor