Web / Apache Lucene Interview questions
What is the difference between Lucene and Elasticsearch or Solr?
Lucene, Elasticsearch, and Solr are often mentioned together, but they sit at different layers of the stack.
| Lucene | Elasticsearch / Solr |
| A Java library, embedded directly in your process. | Standalone server platforms, accessed over HTTP/REST. |
| No built-in networking, clustering, or sharding. | Provide distributed sharding, replication, and cluster management. |
| You write Java code against its API directly. | You send JSON queries/documents over the network. |
Under the hood, each shard in Elasticsearch or each core in Solr is actually a Lucene index - Lucene handles the low-level indexing and scoring, while Elasticsearch and Solr add the distributed systems layer, APIs, and operational tooling on top.
More Related questions...