reFtsTermToken top-level property

RegExp reFtsTermToken
final

A regexp matching an extended FTS token.

It is defined as a sequence of characters from the L, N, Co, P, and Sm Unicode categories, additionally accepting Mn and Mc categories after the first position. This definition corresponds to the behavior of the "unicode61" tokenizer configured by this library, except for the aforementioned first position restriction. An extended token can be formed using the ftsTerm function, assigned to FTS fields as part of a string or as a whole string, and queried as an indivisible unit.

See also: ftsTokenCategories and reFtsTextToken.

Implementation

final RegExp reFtsTermToken = RegExp(
  "[\\p{L}\\p{N}\\p{Co}\\p{P}\\p{Sm}]"
  "[\\p{L}\\p{N}\\p{Co}\\p{P}\\p{Sm}\\p{Mn}\\p{Mc}]*",
  unicode: true,
);