fuzzy_search_engine library
A Dart package for fast and lightweight search with fuzzy search capabilities.
This package provides a pure Dart search engine with no UI dependencies, making it perfect for integrating search functionality into any application.
Features
- π Fast search by name, subtitle, or custom fields
- π― Fuzzy search for typos and misspellings
- β‘ Optimized performance with priority-based results
- π¨ Configurable search behavior
- π¦ Zero dependencies - pure Dart implementation
Quick Start
final items = [
SearchableItem(id: '1', name: 'Apple', subtitle: 'Red fruit'),
SearchableItem(id: '2', name: 'Banana', subtitle: 'Yellow fruit'),
];
// Basic search
final results = SearchEngine.search(items, 'apple');
// Fuzzy search for typos
final fuzzyResults = SearchEngine.fuzzySearch(items, 'aple');
Classes
- SearchableItem
- Represents a searchable item with customizable fields
- SearchConfig
- Configuration for search engine
- SearchEngine
- Fast and lightweight search engine with fuzzy search capabilities