Inverted Index
Index structure mapping terms to documents rather than documents to terms, optimized for full-text search.
A regular index lets you say "fetch row 42" quickly. An inverted index lets you say "which rows contain the word 'database'" quickly. The structure is inverted: instead of "row → content" you have "term → rows containing that term". For full-text search this is exponentially faster than scanning every row.
Each term in a document collection is stored with a list of all documents containing it. For multi-word queries you intersect these lists. This technique powers search engines (Google uses massive inverted indexes) and is built into modern databases via full-text APIs. PostgreSQL, MySQL, and Elasticsearch all support inverted indexes.