Reading notes from 2023; revised November 17, 2026. Reported architecture and scale refer to the source period.

A library and a server solve different problems

Lucene supplies indexing and search functionality inside an application. Solr and Elasticsearch expose server-level interfaces and distributed-system capabilities around Lucene. Choosing between them requires more than a claim that one is enterprise-oriented or easier.

Segments shards and replicas

A Lucene index contains segments. A distributed search server partitions work into shards, each backed by an index, and can maintain replicas. A query may fan out to several shards and combine results. More shards can increase parallelism while adding coordination and overhead.

Near-real-time search means indexing and visibility are distinct events. Define when a write becomes searchable and what acknowledgement guarantees before promising immediate consistency.

Requirement Evidence to collect
Text relevance A labeled query set and ranking measures
Updates Visibility delay and update/indexing throughput
Availability Behavior under node loss and recovery
Latency Distribution under representative query concurrency
Operations Reindexing, upgrades, backups, and access control

Use a comparable exercise

Index the same small corpus with the same analyzers and mappings. Query exact terms, phrases, and filters; inspect tokenization before changing ranking parameters. Then scale the actual workload rather than extrapolating from a single successful search.

Official Lucene, Solr, and Elasticsearch documentation should be selected by version. An old Solr 7.5 guide remains historical documentation, not a current compatibility reference.

Lucene Inside Search Servers

Conceptual illustration; labels describe responsibilities, not a deployment specification.

References