# Apache Lucene

12 Hacker News commenters recommended Apache Lucene and 3 criticized it, November 2025 to November 2026. It was recommended in 6 of 13 months. It meets the Hacker Approved badge rule.

**Verdict:** Mature, heavily optimized search library that makes full-text search straightforward, with fuzzy, stemmed and faceted matching. Critics say it adds complexity and toil and question its fit for some projects.

## Why people recommend it

- Mature, heavily optimized technology (3 comments): "Lexical is much easier to control, iterate and debug. The tools are incredibly mature." ([source](https://news.ycombinator.com/item?id=49446543)) "Lucene is of course well known to be heavily optimized" ([source](https://news.ycombinator.com/item?id=45955101)) "It's incredibly mature technology." ([source](https://news.ycombinator.com/item?id=47320321))
- Makes search straightforward to build (3 comments): "if you use a library like Lucene, it does not need to be hard at all" ([source](https://news.ycombinator.com/item?id=45955823)) "Before Lucene, search was really hard" ([source](https://news.ycombinator.com/item?id=45990004)) "Lucene is often all you need." ([source](https://news.ycombinator.com/item?id=45802333))
- Solid word matching and tokenization (2 comments): "Lucene and friends are fantastic about word matching, fuzzy searches, stem searches, phonetic searches, faceting and more" ([source](https://news.ycombinator.com/item?id=45803195)) "Lucene white space tokenization is pretty good for dumb exact or close enough" ([source](https://news.ycombinator.com/item?id=46003671))
- Separate index alongside SQL (2 comments): "I've always preferred to use SQL as the system of record and then build/maintain an external Lucene index" ([source](https://news.ycombinator.com/item?id=49766882)) "It lives in a dir on disk. True, it's a separate database, but one optimized for this problem." ([source](https://news.ycombinator.com/item?id=45951334))

## What people warn about

- Adds toil, fragility and complexity (2 comments): "Vendoring a library like this into an app seems like a lot more toil than just writing the native multiprocessing python code" ([source](https://news.ycombinator.com/item?id=49044331)) "The fragility, security risk, and complexity added by basically writing a subdialect of Python" ([source](https://news.ycombinator.com/item?id=49049442))

## Alternatives hackers recommend

- [Tantivy](https://hackerapproved.com/p/tantivy.md): 8 recommend
- [PHP-fts](https://hackerapproved.com/p/php-fts.md): 6 recommend
- [Lunr.js](https://hackerapproved.com/p/lunr-js.md): 5 recommend

## Cite as

Hacker Approved, "Apache Lucene", https://hackerapproved.com/p/apache-lucene/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
