v1.0.2
text_search
简单的内存中模糊文本搜索库。
31喜欢 7.9万近 30 天下载150Pub 分数
AndroidiOSWebmacOSWindowsLinux
一个用于 Dart 的内存中模糊文本搜索库。
以下为英文项目原文快照,最新内容请访问 GitHub。
An in-memory fuzzy text search library for Dart.
A simple usage example:
import 'package:text_search/text_search.dart';
main() {
final searchableItems = [
TextSearchItem.fromTerms('Coffee Shop', ['coffee', 'latte', 'macchiato', 'tea']),
TextSearchItem.fromTerms('Dessert', ['ice cream', 'cake', 'pastry']),
TextSearchItem.fromTerms('Milk Tea Shop', ['boba', 'milk tea', 'bubble tea']),
];
final placeTypeSearch = TextSearch(searchableItems);
print(placeTypeSearch.search('icecream'));
}
Please file feature requests and bugs at the issue tracker.