-
+
Data Types
-
-
-
tsvector
- tsvector is a data type that represents a document and is
- optimized for full text searching. In the simplest case,
- tsvector is a sorted list of lexemes, so even without indexes
- full text searches perform better than standard ~ and
- LIKE operations:
+ tsvector
+
tsvector is a data type
+ that represents a document and is optimized for full text searching.
+ In the simplest case, tsvector is a sorted list of
+ lexemes, so even without indexes full text searches perform better
+ than standard ~ and LIKE
+ operations:
SELECT 'a fat cat sat on a mat and ate a fat rat'::tsvector;
-
-
-
tsquery
- tsquery is a data type for textual queries which supports
- the boolean operators & (AND), | (OR),
- and parentheses. A tsquery consists of lexemes
- (optionally labeled by letters) with boolean operators in between:
+ tsquery
+ for textual queries which supports the boolean operators
+ & (AND), | (OR), and
+ parentheses. A tsquery consists of lexemes (optionally
+ labeled by letters) with boolean operators in between:
SELECT 'fat & cat'::tsquery;
-
+
Functions and Operators
- zone="functions-textsearch-search-operator">
+
- zone="functions-textsearch-search-operator">
+
- zone="functions-textsearch-search-operator">
+
- zone="functions-textsearch-tsvector">
+
- zone="functions-textsearch-tsvector">
+
- zone="functions-textsearch-tsvector">
+
- zone="functions-textsearch-tsvector">
+
- zone="functions-textsearch-tsvector">
+
- zone="functions-textsearch-tsvector">
+
- zone="functions-textsearch-tsvector">
- for updating a derived tsvector column
+
+ for updating a derived tsvector column
- zone="functions-textsearch-tsvector">
+
- zone="functions-textsearch-tsvector">
-
Btree operations for tsvector
+
+
Btree operations for tsvector
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
-
Btree operations for tsquery
+
+
Btree operations for tsquery
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+
- zone="functions-textsearch-tsquery">
+