Skip to content
pubscout

text_search

1.0.2, released 2 years ago by flutterflow.io

An in-memory fuzzy text searching library for Dart.

WASM-ready
$ flutter pub add text_search
Source repository

What it does

Provides simple in-memory fuzzy text searching capabilities for Dart applications. It allows querying a list of searchable items using terms and handles fuzzy matching logic.

AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need in-memory fuzzy text search for small to medium datasets
  • You want a pure Dart solution working across all platforms

Skip it when

  • You need a full-text database search for massive datasets
  • You require complex relational querying capabilities

Strengths

  • Simple API with clear usage examples
  • Works across all Flutter platforms including web and desktop
  • Supports prefix matching options

Weaknesses

  • Limited to in-memory searching
  • Lacks advanced NLP or database indexing features

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
1
import 'package:text_search/text_search.dart';

main() {
  final searchableItems = [
    TextSearchItem.fromTerms('Coffee Shop', ['coffee', 'latte', 'macchiato', 'tea']),
  ];

  final placeTypeSearch = TextSearch(searchableItems);
  print(placeTypeSearch.search('icecream'));
}

Alternatives

Packages that do the same job and could replace text_search.

Works with

Packages commonly used together with text_search: ones it builds on, ones built on it, and its own family.