apply<T> method
List<TermMatch>
apply<T>(
- FullTextSearch<
T> search, - TokenizedItem<
T> item, - String term,
- FTSToken token,
override
Applies this matcher and returns one or more match results
Implementation
@override
List<TermMatch> apply<T>(FullTextSearch<T> search, TokenizedItem<T> item,
String term, FTSToken token) {
term = term.toLowerCase();
return [
if (term.length > 1 && token.contains(term))
TermMatch.contains(term, token),
];
}