JsonTokenizer typedef
JsonTokenizer =
Future<List<Token> > Function(Map<String, dynamic> document, {NGramRange? nGramRange, TokenFilter? tokenFilter, Iterable<String> ? zones})
Type definition of a function that returns a collection of Token from
the zones in a JSON document.
Extracts tokens from the zones in a JSON document for use in
full-text search queries and indexes.
documentis a JSON document containing thezonesas keys;nGramRangeis the range of N-gram lengths to generate. IfnGramRangeis null, only keyword phrases are generated;tokenFilteris a filter function that returns a subset of a collection of Tokens; andzonesis the collection of the names of the zones indocumentthat are to be tokenized.
Returns a List<Token>.
Implementation
typedef JsonTokenizer = Future<List<Token>> Function(
Map<String, dynamic> document,
{NGramRange? nGramRange,
Iterable<String>? zones,
TokenFilter? tokenFilter});