RefLib

Reference library for AI

Back

postgresql_16:3.5.11 Text Search Types

PostgreSQL 16 > The SQL Language > Data Types > Text Search Types

PostgreSQL provides two data types that are designed to support full text search, which is the activity of searching through a collection of natural-language *documents* to locate those that best match a *query*. The tsvector type represents a document in a form optimized for text search; the tsquery type similarly represents a text query. (see postgresql_16:3.9) provides a detailed explanation of this facility, and (see postgresql_16:3.6.13) summarizes the related functions and operators.

Subsections

Back