FastSearchExtension<T> extension

Lightweight search extension for simple use cases.

Provides fast search without debug capabilities. Use this when you need maximum performance and don't need detailed logging.

Example:

final results = await products.fastSearchExtension<Product>(
  query: 'samsung',
  searchFieldsMap: {'name': ['nameEn']},
  toJson: (p) => p.toJson(),
);
on

Methods

fastSearchExtension({required String query, required Map<String, List<String>> searchFieldsMap, required Map<String, dynamic> toJson(T), Map<String, double> fieldWeights = const {}, double minScore = 0.3, int limit = 10, bool useIsolate = true, bool useDamerauLevenshtein = true, bool useNGram = true}) Future<List<T>>

Available on List<T>, provided by the FastSearchExtension extension

Fast search without debug overhead.