Apache Solr is an open-source, multi-modal search platform built on Apache Lucene for full-text, vector, and geospatial search.
apache/lucene
A high-performance, full-featured text search engine library written in Java, used as the foundation for building search applications.
- Stars
- 3,592
- Forks
- 1,446
- Open issues
- 2,717
- Last commit
- 14 hours ago
What is it?
Apache Lucene is a text search engine library written in Java. It provides the indexing and query machinery that search applications are built on, so developers embed it in their own programs rather than running it as a standalone server.
The project is maintained under the Apache Software Foundation and is built with Gradle. Building it requires JDK 25, and the source can be cloned from git or downloaded as a source distribution. Contribution guidelines, developer docs and a migration guide are kept in the repository.
Because Lucene is a library, its APIs are used directly from Java code. Detailed usage documentation and Javadoc are published on the project's website rather than in this repository.
Key features
- 01Full-text indexing and querying implemented as a Java library.
- 02Built with Gradle and requires JDK 25.
- 03Maintained under the Apache Software Foundation with Apache-2.0 licensing.
- 04Provides developer documentation and a migration guide in the repository.
Use cases
- Adding full-text search to a Java application or service.
- Building custom search engines or indexing pipelines on the JVM.
- Studying or contributing to information retrieval internals.
Quick start
- 1
Install JDK 25 using your package manager or download it manually
- 2
Clone Lucene's git repository (or download the source distribution)
- 3
Run the Gradle launcher script
gradlew
Things to know
- Building from source requires JDK 25 or later.
- The README covers only basic build setup; it is a library, so you must integrate it into your own application.
Topics
FAQ
- What is lucene?
- A high-performance, full-featured text search engine library written in Java, used as the foundation for building search applications. Apache Lucene is a text search engine library written in Java. It provides the indexing and query machinery that search applications are built on, so developers embed it in their own programs rather than running it as a standalone server.
- Is lucene free to use? What license does it have?
- lucene is open source under the Apache-2.0 license. Check the license terms before using it in commercial products.
- Is lucene still maintained?
- Actively maintained. The last commit to lucene was on Oct 22, 2026.
- What can I use lucene for?
- Adding full-text search to a Java application or service. Building custom search engines or indexing pipelines on the JVM. Studying or contributing to information retrieval internals.
- How do I install lucene?
- Install JDK 25 using your package manager or download it manually Clone Lucene's git repository (or download the source distribution) Run the Gradle launcher script: gradlew
- Where can I get lucene?
- The source code and installation instructions are on GitHub: https://github.com/apache/lucene
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A full-text search engine library in Rust, inspired by Apache Lucene, for building custom search into applications.
A lightweight, single-binary full-text search engine written in Go, offered as a simpler alternative to Elasticsearch for app search.
Vespa is an open-source search engine and serving platform for vectors, tensors, text and structured data at scale.
A Redis module that adds full-text, secondary indexing, vector similarity and aggregation queries to Redis data.
Lightweight, schema-less search backend that indexes text and returns identifiers, offered as a small alternative to Elasticsearch.