Skip to main content

to_tsvector

Function to_tsvector 

Source
pub fn to_tsvector(config: TsConfig, text: &str) -> Vec<TsLexeme>
Expand description

v7.12.1 — tokenise + (optionally) stem text into a sorted + deduped lexeme set with merged positions. Each token’s position is 1-based and clamped at 16383 (PG18-measured, round 753: a 20k-word document’s positions top out at 16383 — the MAXENTRYPOS - 1 clamp — while every lexeme is still recorded).