tokenizeJson method Null safety

Future<List<Token>> tokenizeJson(
  1. Map<String, dynamic> document,
  2. {NGramRange? nGramRange,
  3. Iterable<Zone>? zones,
  4. TokenizingStrategy strategy = TokenizingStrategy.terms}
)

Extracts tokens from the zones in a JSON document for use in full-text search queries and indexes.

  • nGramRange is the range of N-gram lengths to generate; and
  • zones is the collection of the names of the zones in document that are to be tokenized.

Returns a List<Token>.

Implementation

Future<List<Token>> tokenizeJson(Map<String, dynamic> document,
    {NGramRange? nGramRange,
    Iterable<Zone>? zones,
    TokenizingStrategy strategy = TokenizingStrategy.terms});