Liking cljdoc? Tell your friends :D

datahike.pg.tsearch

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.
raw docstring

canonical-tsqueryclj

(canonical-tsquery value)

canonical-tsvectorclj

(canonical-tsvector value)

Validate and return PostgreSQL's canonical textual tsvector form.

Validate and return PostgreSQL's canonical textual tsvector form.
raw docstring

parse-tsqueryclj

(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.
raw docstring

parse-tsvectorclj

(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.
raw docstring

phraseto-tsqueryclj

(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.
raw docstring

plainto-tsqueryclj

(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.
raw docstring

to-tsvectorclj

(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.
raw docstring

ts-lexizeclj

(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.
raw docstring

ts-match3clj

(ts-match3 vector query)

Value-position @@ with PostgreSQL's strict NULL propagation.

Value-position @@ with PostgreSQL's strict NULL propagation.
raw docstring

ts-match?clj

(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.
raw docstring

tsquery-candidate-planclj

(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.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close