Lucene
Apache Lucene is an open-source Java library for indexing, searching, and retrieving textual and other content.
MongoDB 8.0 in Action, Third Edition
Apache Lucene is an open-source Java information-retrieval library that provides indexing and search capabilities for text and other data.
- How it is used
- Supports full-text indexing and retrieval for applications and local Atlas deployments.
- How deep it goes
- Explains inverted indexes, tokenization, normalization, scoring, and mongot synchronization, but not Lucene API implementation.
- Examples
- Uses two inspection documents and a simplified token-to-document index covering names, locations, results, sectors, dates, and numbers.
- What you can do after
- Evaluate how tokenization, inverted indexes, and scoring support fast full-text retrieval and domain-specific ranking.
Read how MongoDB 8.0 in Action, Third Edition explains Lucene →
Elasticsearch in Action, Second Edition
Apache Lucene is an open-source Java library for information retrieval and full-text search.
- How it is used
- Provides the full-text search and indexing core that applications integrate directly or access through search engines.
- How deep it goes
- Defines a Java full-text search library and API-based integration, without detailing indexing internals.
- Examples
- Uses Elasticsearch, Solr, and OpenSearch as examples of search engines built on Lucene.
- What you can do after
- Evaluate whether to integrate Lucene directly or use a search engine that wraps it.
Read how Elasticsearch in Action, Second Edition explains Lucene →
Effective Conversational AI
Apache Lucene is an open-source search library that provides text indexing and information-retrieval capabilities.
- How it is used
- Supports RAG document retrieval when accuracy and speed matter more than nuanced semantic understanding.
- How deep it goes
- Explains indexing, retrieval, and generation responsibilities but does not detail Lucene implementation or configuration.
- Examples
- Uses organizational text repositories, user queries, retrieved documents, and generated responses as the working scenario.
- What you can do after
- Apply it via Lucene to retrieve relevant documents before handing their content to a RAG response generator.
Related concepts
- Elasticsearchused by · Elasticsearch is a distributed search and analytics engine that indexes data for searching, retrieval, and analysis.
- inverted indeximplements · An inverted index is a data structure that maps terms or tokens to the documents, records, or locations in which they occur.
- Atlas Searchused by · Atlas Search is MongoDB Atlas's embedded full-text search capability, built on Apache Lucene and supporting features such as scoring and faceting.
- mongotused by · mongot is the MongoDB process that maintains Atlas Search indexes, tracks database changes, and processes Atlas Search queries alongside mongod.
- full-text search enginekind of · A full-text search engine is software that indexes textual content and retrieves documents according to their textual relevance.
- replicaincludes · A replica is a copy of data or state, or an equivalent running instance of a component, maintained alongside others in a replicated system.
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.


