text_search 0.0.2 icon indicating copy to clipboard operation
text_search: ^0.0.2 copied to clipboard

Simple in-memory fuzzy text searching library.

An in-memory fuzzy text search library for Dart.

license.

Usage #

A simple usage example:

import 'package:text_search/text_search.dart';

main() {
  final searchableItems = [
    TextSearchItem('Coffee Shop', ['coffee', 'latte', 'macchiato', 'tea']),
    TextSearchItem('Dessert', ['ice cream', 'cake', 'pastry']),
    TextSearchItem('Milk Tea Shop', ['boba', 'milk tea', 'bubble tea']),
  ];

  final placeTypeSearch = TextSearch(searchableItems);
  print(placeTypeSearch.search('icecream'));
  // [TextSearchResult(Dessert, 0.20740740740740726)]
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

9
likes
120
pub points
91%
popularity

Publisher

unverified uploader

Simple in-memory fuzzy text searching library.

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

edit_distance, tuple

More

Packages that depend on text_search