Tokenizer

@Serializable
enum Tokenizer : Enum<Tokenizer>

How a text index splits a value into the tokens a matchText filter is matched against.

Entries

Link copied to clipboard
@SerialName(value = "prefix")
PREFIX

Every prefix of every word, so a partial word matches. Largest index.

Link copied to clipboard
@SerialName(value = "whitespace")
WHITESPACE

Split on whitespace only, keeping punctuation attached to the token.

Link copied to clipboard
@SerialName(value = "word")
WORD

Split on whitespace and punctuation. The usual choice for prose.

Link copied to clipboard
@SerialName(value = "multilingual")
MULTILINGUAL

Word-splitting that also handles scripts without spaces, such as Chinese and Japanese.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard
fun valueOf(value: String): Tokenizer

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.