ITextAnalyzer class Null safety
Interface for a text analyser class that extracts tokens from text for use in full-text search queries and indexes:
- configuration is a TextAnalyzerConfiguration used by the ITextAnalyzer to tokenize source text; and
- provide a tokenFilter if you want to manipulate tokens or restrict tokenization to tokens that meet criteria for either index or count; and
- the tokenize function tokenizes source text using the configuration and then manipulates the output by applying tokenFilter; and
- the tokenizeJson function extracts tokens from the zones in a JSON document.
- Implementers
Constructors
Properties
- configuration → TextAnalyzerConfiguration
-
The TextAnalyzerConfiguration used by the ITextAnalyzer.
read-only
- hashCode → int
-
The hash code for this object.
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- tokenFilter → TokenFilter?
-
A filter that returns a subset of tokens.
read-only
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
tokenize(
SourceText source, [Zone? zone]) → Future< List< Token> > -
Extracts tokens from
sourcefor use in full-text search queries and indexes. -
tokenizeJson(
Map< String, dynamic> document, [Iterable<Zone> ? zones]) → Future<List< Token> > -
Extracts tokens from the
zonesin a JSONdocumentfor use in full-text search queries and indexes. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited