tokenizeJson method Null safety
- Map<
String, dynamic> document, - {NGramRange? nGramRange,
- Iterable<
Zone> ? zones, - TokenizingStrategy strategy = TokenizingStrategy.terms}
Extracts tokens from the zones in a JSON document for use in
full-text search queries and indexes.
nGramRangeis the range of N-gram lengths to generate; andzonesis the collection of the names of the zones indocumentthat 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});