fuzzy
fuzzy copied to clipboard
Fuzzy search in Dart
Super strange behaviour, Meagher street should stay but it disappears when the `street` is added https://github.com/comigor/fuzzy/assets/47465827/639ba398-7a51-4266-9934-ddbacbbaebf4 ```dart void updateSearched(String searchTerm) { _searched.clear(); if (searchTerm.isEmpty) { setState(() { _searched = List.from(_clinics);...
To avoid this error ``` RangeError (end): Invalid value: Not in inclusive range 0..1: 15 When the exception was thrown, this was the stack: #0 RangeError.checkValidRange (dart:core/errors.dart:356:9) #1 List.sublist (dart:core-patch/growable_array.dart:84:38)...
```dart import 'package:fuzzy/fuzzy.dart'; void main() { final fuse = Fuzzy(['apple', 'banana', 'orange']); final result = fuse.search('ran'); result.map((r) => r.output.first.value).forEach(print); // ^^^^^^ The getter 'output' isn't defined for the type 'Result'...
I get a FormatExceptions when user types a special character (e.g. a parenthesis) after a long string. With `test1 test2 test3 test4 test5 (` it works but with `test1 test2...
Hi, I have a small set of strings to search: first_name_6 last_name_6 first_name_2 last_name_2 first_name_1 last_name_1 first_name_5 last_name_5 first_name_4 last_name_4 first_name_3 last_name_3 (it's a single string field). Searching with different...
I have an object that has a default name (`String`) and a list of aliases (`List`). Right now I just have a `WeightedKey` of the name, but I'd also like...
This may be a configuration issue as I have no experience with fuzzy searching, opting into services like Algolia. However, I need an offline search-as-you-type feature and I'm looking for...
Given a list of items: ``` id: 2 name: Aroostook Farmland id: 22 name: Penobscot Bay id: 29 name: Coastal Islands ``` I want to be able to type `Penob`...
Tried the example code and many more options, but all the resulted matches have always the `arrayIndex` equal to **-1**.
First of all, amazing library. But, I guess the score property of result object is always zero (even when it hasn't found any matches). Example: ``` void testFuzzy() { final...