Skip to main content

Module fts

Module fts 

Source
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§

LexemePos
Token
TsVectorBuilder
TsVectorReader

Enums§

TokenizerKind
TsQueryAst
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 weight only to lexemes appearing in filter; 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