Expand description
Full-text search: tsvector/tsquery binary codec + evaluator.
Wire format is canonical: identical content produces byte-identical bytes, enabling hash + equality + B-tree ordering without re-parsing.
Structs§
Enums§
- Tokenizer
Kind - TsQuery
Ast - Tsquery AST. Wire format (preorder):
- Weight
Constants§
- MAX_
POSITION - MAX_
POSITIONS_ PER_ LEXEME - TSQ_
FLAG_ PREFIX - TSQ_
TAG_ AND - TSQ_
TAG_ LEXEME - TSQ_
TAG_ NOT - TSQ_
TAG_ OR - TSQ_
TAG_ PHRASE - TSV_
FLAG_ POSITION_ OVERFLOW
Functions§
- fn_
length_ tsvector - fn_
numnode - fn_
phraseto_ tsquery - fn_
phraseto_ tsquery_ with - fn_
plainto_ tsquery - fn_
plainto_ tsquery_ with - fn_
setweight - fn_
setweight_ selective - Apply
weightonly to lexemes appearing infilter; leave others unchanged. - fn_
strip - Strip positions and weights from a TSVECTOR, keeping only the distinct lexeme set.
- fn_
to_ tsquery - fn_
to_ tsquery_ with - fn_
to_ tsvector - fn_
to_ tsvector_ with - fn_
ts_ headline - fn_
ts_ headline_ with - fn_
ts_ lexize - fn_
ts_ lexize_ with - fn_
ts_ rank - fn_
ts_ rank_ cd - fn_
websearch_ to_ tsquery - fn_
websearch_ to_ tsquery_ with - op_
concat tsvector || tsvector: union the lexeme sets, merging positions per lexeme.- op_
match - pack_
position - parse_
tsquery - parse_
weight_ char - tokenize
- tsquery_
display - tsvector_
display - tsvector_
overflowed - unpack_
position