# Apache Lucene

> A high-performance, full-featured text search engine library written in Java

Source: https://talira.ai/catalog/apache-lucene-jesby69k
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [search / full text](https://talira.ai/categories/search/full-text), [ai / vector search](https://talira.ai/categories/ai/vector-search), [languages / java](https://talira.ai/categories/languages/java)
- Licence: Apache-2.0[^1][^2]
- Pricing: Free and open source[^1][^2]
- Pricing notes: Free under Apache-2.0.
- Free tier: yes[^1][^2]
- Self-hostable: yes[^2]
- Backed by: [Apache Software Foundation](https://talira.ai/orgs/apache-software-foundation.md)
- Funding: non-profit[^3]

Apache Lucene is the Apache Software Foundation's full-text search library for Java: an application embeds it to build and query an inverted index, rather than talking to a search server. It ranks results with pluggable models (BM25, the vector space model), handles phrase, wildcard, proximity and range queries, fielded search and sorting, faceting, highlighting, joins and result grouping, typo-tolerant suggesters and spell correction, and nearest-neighbour search over high-dimensional vectors, with storage formats pluggable through codecs. It is the engine inside [Apache Solr](https://talira.ai/catalog/apache-solr-drfe8yv5.md), [Elasticsearch](https://talira.ai/catalog/elasticsearch-5kvt1ns8.md) and [OpenSearch](https://talira.ai/catalog/opensearch-s3zfhw7f.md), and PyLucene, a sibling Apache project, wraps it for Python. Version 10 needs Java 21 or later; the 9.x line still gets releases.

## Links

- Website: https://lucene.apache.org/
- GitHub: https://github.com/apache/lucene
- Docs: https://lucene.apache.org/core/documentation.html

## Problems it solves

- add full-text search with BM25 ranking to my Java application without running a separate search server
- embed a search index in a JVM app that supports phrase, wildcard, proximity and range queries
- nearest-neighbour vector search inside a Java library for semantic search over my embeddings
- faceted navigation and hit highlighting for search results in a Java or Kotlin app
- typo-tolerant autocomplete suggestions for a search box, built into my Java backend
- index hundreds of gigabytes of text quickly with a small memory footprint
- build my own search engine on the same core library that Elasticsearch and Solr are built on
- keep searching an index while new documents are still being added and updated
- group search results by a field or join parent and child documents in an embedded index
- plug a custom scoring model into my application's text search ranking
- use a mature full-text search library from Python through bindings

## Features

- incremental indexing as fast as batch indexing; index about 20-30% of the text's size
- ranked search with pluggable models including BM25 and the vector space model
- phrase, wildcard, proximity, range and fielded queries; sorting by any field
- multi-index search with merged results
- search while updating
- faceting, highlighting, joins and result grouping
- nearest-neighbour search over high-dimensional vectors
- fast, memory-efficient, typo-tolerant suggesters and spell correction
- configurable storage engine through codecs
- PyLucene: Python bindings (a separate Apache Lucene project)

## Trust

Overall: 0.37 out of 1.
Signals: backing 0.55, extensibility 0.00.

- backed by Apache Software Foundation
- funding: non-profit

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Tantivy](https://talira.ai/catalog/tantivy-0cr40qwa.md): Fast full-text search engine library written in Rust
- [Bleve](https://talira.ai/catalog/bleve-65g9wamj.md): Full-text, geo and vector search library for Go
- [pg_textsearch](https://talira.ai/catalog/pg-textsearch-prjz09aa.md): PostgreSQL extension for BM25 relevance-ranked full-text search

## Sources

[^1]: https://github.com/apache/lucene/blob/main/LICENSE.txt (checked 20 Nov 2026)
[^2]: https://lucene.apache.org/core/ (checked 20 Nov 2026)
[^3]: https://www.apache.org/foundation/ (checked 20 Nov 2026)
