Search index
A search index is a data structure that organizes searchable representations of content to support efficient retrieval in response to queries.
MongoDB 8.0 in Action, Third Edition
A search index is an index structure that organizes searchable content for efficient full-text or relevance-based retrieval.
- How it is used
- Enables efficient full-text retrieval of MongoDB documents through Atlas Search queries.
- How deep it goes
- Explains term-to-document mappings, field configuration, creation, readiness checks, and resource trade-offs without implementing the index structure.
- Examples
- Uses an inspections collection for CLI and local index creation, then fuzzy search with filters and search-score sorting.
- What you can do after
- Operate/configure it with Atlas CLI or MongoDB methods, verify readiness, and query the named index with `$search`.
Read how MongoDB 8.0 in Action, Third Edition explains search index →
Machine Learning System Design
A search index is a data structure that organizes searchable representations so that relevant items can be retrieved efficiently.
- How it is used
- Supports photo retrieval by organizing item vectors for filtered, low-latency candidate search and relevance ranking.
- How deep it goes
- Explains separate batch-update and real-time-query paths, scale targets, and model-triggered rebuilds without detailing index internals.
- Examples
- Uses a PhotoStock search API, daily photo indexing, model-triggered reindexing, Qdrant evaluation, and ranked photo results.
- What you can do after
- Operate/configure a search service with separate index maintenance, query handling, filtering, candidate retrieval, and ranking responsibilities.
Read how Machine Learning System Design explains search index →
Natural Language Processing in Action, Second Edition
A search index is a data structure that organizes terms and their associated documents to support efficient retrieval.
- How it is used
- Supports efficient keyword retrieval and serves as an initial filter for information-retrieval systems.
- How deep it goes
- Explains vocabulary construction, stop-word removal, binary vectors, compression, and constant-time similarity, but not index internals.
- Examples
- Uses extracted vocabulary listings, an imaginary book corpus, and Elasticsearch, Solr, and PostgreSQL.
- What you can do after
- Apply binary bag-of-words vectors to filter documents for information retrieval and full-text search.
Read how Natural Language Processing in Action, Second Edition explains search index →
Also covered in
- Enterprise RAGIn early access (MEAP)
- LLMs in Production
- Grokking Web Application Security
What to know first
- similarity searchSimilarity search is a retrieval technique that finds or ranks items by their similarity to a query, often by comparing feature or vector representations under a similarity or distance measure.
- embeddingAn embedding is a numerical vector representation of an item in a feature space, encoding selected properties or relationships for computational tasks such as comparison or retrieval.
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- metadataMetadata is information that describes, identifies, or provides context about other data, resources, or artifacts.
Related concepts
- createSearchIndexes database commandproduced by · The createSearchIndexes database command creates Atlas Search indexes for MongoDB collections from specified index definitions.
- db.collection.getSearchIndexes()used by · db.collection.getSearchIndexes() is a MongoDB collection method that returns the Atlas Search index definitions associated with a collection.
- hybrid searchused by · Hybrid search is an information-retrieval technique that combines multiple retrieval methods or relevance signals to find or rank relevant results.
- ivfflatincludes · IVFFlat is an approximate nearest-neighbor vector index that partitions vectors into centroid-based inverted lists and compares vectors within selected lists.
Questions about search index
What is search index?
A search index is a data structure that organizes searchable representations of content to support efficient retrieval in response to queries.
Which Manning books explain search index?
MongoDB 8.0 in Action, Third Edition, Machine Learning System Design and Natural Language Processing in Action, Second Edition.
What should I know before learning search index?
Manning books that teach search index usually introduce similarity search, embedding, JSON and metadata first.
What kinds of search index are there?
Kinds of search index include ivfflat.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


