PostgreSQL-compatible full-text value semantics.
This namespace owns the SQL-visible normalization and canonical text form. A secondary index (Scriptum or otherwise) may use these values to find candidates, but must not substitute its parser, analyzer, or scores for PostgreSQL semantics.
PostgreSQL-compatible full-text value semantics. This namespace owns the SQL-visible normalization and canonical text form. A secondary index (Scriptum or otherwise) may use these values to find candidates, but must not substitute its parser, analyzer, or scores for PostgreSQL semantics.
(canonical-tsvector value)Validate and return PostgreSQL's canonical textual tsvector form.
Validate and return PostgreSQL's canonical textual tsvector form.
(parse-tsquery value)Parse PostgreSQL's boolean/prefix/weight/phrase tsquery grammar to an AST.
Parse PostgreSQL's boolean/prefix/weight/phrase tsquery grammar to an AST.
(parse-tsvector value)Parse a tsvector input value into its canonical semantic representation.
The returned sorted map associates each lexeme with its ordered, deduplicated position/weight vector. It deliberately remains independent of Scriptum: secondary indexes may derive candidates from this value, while @@ rechecks against this exact representation.
Parse a tsvector input value into its canonical semantic representation. The returned sorted map associates each lexeme with its ordered, deduplicated position/weight vector. It deliberately remains independent of Scriptum: secondary indexes may derive candidates from this value, while @@ rechecks against this exact representation.
(phraseto-tsquery config text)Build canonical phrase tsquery text. Distances use original token positions, so removing stop words widens <N> exactly as PostgreSQL does.
Build canonical phrase tsquery text. Distances use original token positions, so removing stop words widens <N> exactly as PostgreSQL does.
(plainto-tsquery config text)Build canonical tsquery text, treating punctuation as separators and joining retained lexemes with AND.
Build canonical tsquery text, treating punctuation as separators and joining retained lexemes with AND.
(to-tsvector text)(to-tsvector config text)Build a canonical positioned tsvector using the supported configuration.
Build a canonical positioned tsvector using the supported configuration.
(ts-lexize dictionary token)Apply a PostgreSQL text-search dictionary and return text[].
The initial compatibility boundary covers english_stem and simple. Other dictionaries fail explicitly until catalog-backed resolution exists.
Apply a PostgreSQL text-search dictionary and return text[]. The initial compatibility boundary covers english_stem and simple. Other dictionaries fail explicitly until catalog-backed resolution exists.
(ts-match3 vector query)Value-position @@ with PostgreSQL's strict NULL propagation.
Value-position @@ with PostgreSQL's strict NULL propagation.
(ts-match? vector query)Exact PostgreSQL @@ recheck for the supported semantic slice. Nulls are false in predicate position; callers projecting the operator preserve SQL NULL separately.
Exact PostgreSQL @@ recheck for the supported semantic slice. Nulls are false in predicate position; callers projecting the operator preserve SQL NULL separately.
(tsquery-candidate-plan query)Return an analyzer-free posting-list plan for a secondary index.
The plan is deliberately less selective than @@ whenever necessary, but it
has no false negatives. :all means a complete indexed-document scan and
:none means the empty tsquery. Every non-empty plan requires authoritative
primary tsvector recheck; Lucene scores and analyzers are never SQL-visible.
Return an analyzer-free posting-list plan for a secondary index. The plan is deliberately less selective than @@ whenever necessary, but it has no false negatives. `:all` means a complete indexed-document scan and `:none` means the empty tsquery. Every non-empty plan requires authoritative primary tsvector recheck; Lucene scores and analyzers are never SQL-visible.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |