How microfuzz works: Core Concepts
mainmicrofuzz is a lightweight, in-memory fuzzy search library designed for speed and simplicity.
Key Characteristics:
- Search Logic: Case-insensitive and diacritics-insensitive. It matches query letters in order (but not necessarily consecutively) and supports matching query words in any order. It works with Latin, Cyrillic, and rudimentary CJK scripts.
- Scoring: Sorts results based on how well the text matches the query using simple heuristics. If scores are equal, the original input order is preserved.
- Output: Returns matching items along with character ranges (
matches) used for UI highlighting. - Limitations: It is not a full-text search engine. It does not include stemming, soundex, Levenshtein distance, or autocorrect. It is intended for short strings like labels, names, or task titles rather than long-form text like notes or comments.