[KongchangAI]
Concept

tsvector

A PostgreSQL data type designed specifically for full-text search that splits text into tokens stored in normalized form with positions, supports stemming and relevance ranking, and is typically used together with a GIN index.

Timeline (last 90 days)

Oct 14

tsvector is a data type designed by PostgreSQL specifically for full-text search; it splits text into tokens and stores them normalized by position, thereby supporting stemming and position-related ranking.

Unverified50%
Oct 14

Before adding the GIN index and the generated tsvector, searching across 10,000 translations took about 800ms; after adding the index, even when the data volume grew to 100,000 translations, the same query dropped to about 20-40ms.

Unverified50%
Oct 10

PostgreSQL has a built-in tsvector for full-text search, along with plugins such as PGSearch that provide BM25-like capabilities.

Unverified50%
Sep 20

Postgres's built-in full-text search is based on two data types: tsvector and tsquery.

Unverified50%
Sep 20

A tsvector is a lexical vector converted from text after stemming and stop-word filtering, while tsquery is a query expression used for matching.

Unverified50%

All Facts (5)

Source Articles