Skip to main content

decode_tsvector_external

Function decode_tsvector_external 

Source
pub fn decode_tsvector_external(s: &str) -> Result<Vec<TsLexeme>, EvalError>
Expand description

v7.12.0 — decode PG external form 'word':1,2A 'other':3 into a Vec<TsLexeme>. Lexemes are sorted ascending by word (with duplicates merged on positions) so the output matches the engine invariant. Empty input yields an empty vector.

v7.12.0 only ships the cast-literal entry. Full to_tsvector (Unicode word-split + Porter stemming + stopwords) lands in v7.12.1.