Full Text Search

PostgreSQL Index: Full Text Search

GIN (Generalized Inverted Index) based index

CREATE INDEX name ON table USING GIN (column);

Scenario

  • array
  • json object

Data type

  • hstore
  • json
  • jsonb

GiST (Generalized Search Tree) based index

Reference


Gin (Generalized Inverted Index)

PostgreSQL Full Text Search Gin (Generalized Inverted Index) Index

GIST (Generalized Search Tree)

PostgreSQL Full Text Search Gist (Generalized Search Tree) Index