Skip to content

v1.0.0

Latest

Choose a tag to compare

@maxwellt23 maxwellt23 released this 25 Mar 15:31
f690b8a

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 Searchable and searchableFields()
  • Assign weight values 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
  • async overloads for both filter and rankedSearch to keep large searches off the main actor