Skip to main content

Module text_index

Module text_index 

Source
Expand description

Cross-crate vocabulary for the text plugin.

The write path carries one TextIndexDoc per indexed literal from compute to the O partition, and the plugin’s configuration names one analyzer from the ANALYZERS menu. Both live here — beside the geo and temporal posting types — so compute, the partition and the index engine share one definition without any of them linking Tantivy.

Structs§

TextIndexDoc
One literal to add to the text index.
TextSearchRequest
One candidate drain request.
TextSubjectRequest
One subject-resolve request: the subject form of text:query.
TextSubjectRow
One resolved row of a TextSubjectRequest.

Enums§

TextCandidateMode
Which candidate query to run against a text index.

Constants§

ANALYZERS
Analyzer menu: config value → tokenizer name registered on the index.
DEFAULT_ANALYZER
Default analyzer name: tokenize, drop over-long tokens, lowercase.
DEFAULT_SEED_CHARS
Default number of characters stored in the bounded prefix and suffix fields.
LANG_NONE
Language-field sentinel for a literal without a language tag.
MAX_INDEXED_LEXICAL_BYTES
Largest string-literal lexical the text index accepts, in bytes.
MAX_SEED_CHARS
Largest accepted seed length.
RAW_TOKENIZER
Tokenizer name used by the bounded seed fields and the language field.

Functions§

registered_analyzer
The registered tokenizer name for a configuration analyzer value.
text_index_key
The logical identity of one text document: (predicate, literal).