AlphaAndNumeric constructor
AlphaAndNumeric({
- double termDecay = 0.1,
Construct AlphaAndNumeric
see: TermMapping.termDecay for explanation of termDecay usage.
Implementation
AlphaAndNumeric({double termDecay = 0.1})
: super(
(String str, bool caseSensitive, bool unicode) =>
LinkedHashSet<String>.from((unicode
? _matchAlphaAndNumericUnicode
: _matchAlphaAndNumericAscii)
.allMatches(caseSensitive ? str : str.toLowerCase())
.map((m) => m[0])),
termDecay);