DEV.co
Open-Source Databases · apache

lucene-solr

Apache Lucene and Solr are mature, open-source search and information-retrieval libraries. This repository is now largely historical—active development has moved to separate Apache repositories for Lucene and Solr, with this shared repo maintained only for 8.11.x bugfixes.

Source: GitHub — github.com/apache/lucene-solr
4.4k
GitHub stars
2.6k
Forks
Unknown
Primary language
Apache-2.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositoryapache/lucene-solr
Ownerapache
Primary languageUnknown
LicenseApache-2.0 — OSI-approved
Stars4.4k
Forks2.6k
Open issues230
Latest releaseUnknown
Last updated2026-05-15
Sourcehttps://github.com/apache/lucene-solr

What lucene-solr is

Lucene is a Java-based full-text search library providing indexing, querying, and ranking APIs. Solr is a distributed search server built on Lucene. This unified repository is deprecated; new features and releases occur in apache/lucene and apache/solr.

Quickstart

Get the lucene-solr source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/apache/lucene-solr.gitcd lucene-solr# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

Full-text search in enterprise applications

Lucene is well-suited for applications requiring fast, scalable full-text indexing and querying of large document collections, particularly in Java environments.

Distributed search infrastructure

Solr excels as a standalone search server for multi-tenant systems, content management platforms, and e-commerce search requiring clustering, replication, and horizontal scaling.

Building custom information-retrieval systems

Lucene's flexible API allows teams to build domain-specific search solutions with custom analyzers, query parsers, and ranking models.

Implementation considerations

  • Clone from apache/lucene or apache/solr repositories instead of lucene-solr; this repository is no longer primary development.
  • Lucene requires careful schema design, analyzer configuration, and query optimization—not a plug-and-play library.
  • JVM memory and GC tuning are essential for production indexing and search performance, especially at scale.
  • Integration typically involves embedding Lucene in applications or deploying Solr as a service; both require operational overhead.
  • Testing must cover index corruption scenarios, shard rebalancing, and failover behavior in production environments.

When to avoid it — and what to weigh

  • You need active development on this repository — This lucene-solr repository is no longer the main development home. Feature work and latest releases occur in apache/lucene and apache/solr instead. Only 8.11.x bugfixes remain here.
  • You require non-Java full-text search — Lucene and Solr are Java-centric. If your stack is primarily Go, Rust, Python, or JavaScript, integration complexity and operational overhead may outweigh benefits.
  • You need turnkey, minimal-config search — Both Lucene and Solr require careful tuning of indexing strategies, query syntax, and JVM configuration. Simpler alternatives exist for basic keyword matching.
  • You cannot manage Java infrastructure — Solr requires JVM management, heap sizing, garbage collection tuning, and operational monitoring. Organizations without Java expertise should evaluate hosted or lower-overhead alternatives.

License & commercial use

Apache License 2.0 (Apache-2.0): permissive OSI-approved license. Allows commercial use, modification, and distribution with attribution and liability disclaimer.

Commercial use is permitted under Apache-2.0. No license fee or commercial restriction exists. You must include the Apache-2.0 license text and NOTICE file in distributions. Consult legal counsel if distributing modified versions for compliance confirmation.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceModerate
DocumentationUnknown
License clarityClear
Deployment complexityHigh
DEV.co fitGood
Assessment confidenceMedium
Security considerations

Both projects are Java-based; follow standard JVM security practices: keep dependencies and JVM runtime patched, restrict network access to Solr HTTP endpoints, use authentication/TLS in production, and validate query input to prevent injection. No specific vulnerabilities are claimed here; consult CVE databases and security advisories for the version you evaluate.

Alternatives to consider

Elasticsearch

Distributed search engine built on Lucene with REST API, automatic sharding, and lower operational overhead than Solr for many teams. Requires license review for commercial use.

Meilisearch or Typesense

Modern, lightweight, open-source search engines with simpler APIs and lower deployment complexity than Lucene/Solr. Better suited to teams without deep Java expertise.

PostgreSQL/MySQL full-text search

If you already use relational databases, native FTS may suffice for moderate workloads, avoiding additional infrastructure and operational burden.

Software development agency

Build on lucene-solr with DEV.co software developers

Lucene and Solr are powerful but operationally demanding. Our engineering team can help evaluate fit, migration paths from legacy systems, and integration strategies. Contact us to discuss your search infrastructure requirements.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

lucene-solr FAQ

Should I clone lucene-solr or apache/lucene and apache/solr?
Clone apache/lucene or apache/solr directly. This lucene-solr repository is deprecated for new work. Use lucene-solr only if maintaining 8.11.x legacy code.
Is Solr a drop-in replacement for Lucene?
No. Lucene is a library; Solr is a server. Lucene requires Java API integration; Solr is accessed via HTTP REST. Choose based on deployment model (embedded vs. distributed).
What are typical deployment models?
Lucene: embedded in Java applications. Solr: standalone or clustered search service (single-node, master-replica, or SolrCloud). Solr requires more operational infrastructure.
Can I use this in a microservices architecture?
Lucene requires JVM embedding (monolith-friendly). Solr as a service works better for microservices; use REST API from any language. Both require separate index management and backups.

Software developers & web developers for hire

Need help beyond evaluating lucene-solr? DEV.co is a software development agency offering software development services and web development for teams of every size. Our software developers and web developers build custom software, web applications, APIs, and open-source databases integrations — and maintain them long-term.

Assess Lucene/Solr for Your Search Stack

Lucene and Solr are powerful but operationally demanding. Our engineering team can help evaluate fit, migration paths from legacy systems, and integration strategies. Contact us to discuss your search infrastructure requirements.