---
title: "GIN (Generalized Inverted Index) — Database Glossary | Xata"
description: "An index type for values containing multiple elements: arrays, JSONB, full-text search vectors, and trigrams. Maps each element to the rows containing i..."
source: "https://xata.io/glossary/gin"
---

# GIN (Generalized Inverted Index)

Indexing

An index type for values containing multiple elements: arrays, JSONB, full-text search vectors, and trigrams. Maps each element to the rows containing it. Excellent for containment queries (@>, ?, @@).

Related terms

[B-tree](/glossary/b-tree)pg_trgm

[← Back to glossary](/glossary)
