An inverted index maps each term to the documents that contain it. In e-commerce, it’s how queries instantly find matching products by words in titles, attributes, and descriptions.
An inverted index is the core retrieval structure for text search: a term → postings list mapping. Each postings list stores doc IDs (and often positions) for documents containing the term, enabling fast lookups and phrase/proximity queries.
The inverted index is the backbone of fast, explainable text retrieval. With clean analyzers, smart fielding, and a hybrid pipeline, it powers accurate product search at scale.
Inverted index vs database index?
A DB index speeds equality/range on columns; an inverted index is built for full-text retrieval.
Do I still need vectors?
Vectors improve semantic recall, but keep the inverted index for precision, speed, and filtering.
Positions necessary?
Yes for phrase/highlight/proximity; optional for pure bag-of-words.