Expand description
Word boundaries shared by matches_term and the fulltext bloom index.
Bloom pruning is only sound if the index splits text exactly where
matches_term sees word boundaries, so both use classify_char, and the
query side derives its probes with extract_term_probes and extract_like_probes.
Enums§
- Char
Class - Classes of characters that decide where
matches_termsees a word boundary.
Statics§
Functions§
- classify_
char - Returns the
CharClassofc.tokenizesplits text wherever the class changes and at everyCharClass::Othercharacter. - extract_
like_ probes - Returns tokens that every text satisfying
text LIKE patterncontains, as produced bytokenize.\escapes the next character, following arrow’slikekernel; a trailing\is a literal backslash. - extract_
term_ probes - Returns tokens that every text satisfying
matches_term(text, term)contains, as produced bytokenize. - for_
each_ 🔒word_ run - Calls
fon every maximal run of word characters of the same class. - has_
irregular_ lowercase - Returns whether lowercasing
textas a whole can produce tokens that lowercasing each token oftextdoesn’t, whichmatches_term(lower(col), ..)andlower(col) LIKE ..rely on. Every other character lowercases to one character of the same class, but U+0130 and U+212A change length or class, andΣlowercases depending on the characters after it. - is_han 🔒
- push_
han_ 🔒tokens - push_
literal_ 🔒probes - Pushes the tokens of
literalthat stay whole tokens whereverliteraloccurs. A side is bounded when the character beyond it can’t extend the adjacent run. - tokenize
- Returns the tokens the fulltext bloom index stores for
text.