Splits a search string into tokens.
Defaults: split on runs of whitespace, trim each token, drop empties. Options:
:pattern—Regex.t()or binary delimiter passed toString.split/3. Defaults to~r/\s+/.:trim— trim each token. Defaults totrue.:drop_empty— discard empty tokens. Defaults totrue.:downcase— downcase each token. Defaults tofalse(redundant with case-insensitiveILIKE, exposed forLIKEcallers).:max_tokens— cap the token count (a backstop against pathologically long input producing hugeWHEREclauses). Defaults tonil(no cap).
A nil term yields [].