Compare · Search libraries
Indx Core vs Lucene
Lucene is the engine under Elasticsearch and Solr. Indx Core is a search engine of its own, measured against it in process, settings matched.
1.0×
faster at the median: 0.53 ms against Lucene’s 14 ms, with Lucene’s settings matched.
1,000 searches, back to back · real time
0.00 ms
Each search’s time drawn from the measured distribution, the same draw for both
At a glance
Indx Core and Lucene, side by side
| Feature | Indx Core | Lucene |
|---|---|---|
| Runs as | A .NET library (Indx Core) and an HTTP server (Indx) | A Java library |
| Where it runs | Self-hosted: your machines or your Azure subscription | In your process (JVM) |
| Licence | Source available (PolyForm Shield) | Apache 2.0 |
| Typo tolerance, out of the box | Up to three edits a word, then pattern matching keeps guessing | FuzzyQuery, two edits at most |
| Matching inside words | Pattern matching, field by field, ranked with everything else | Not in its ranking; n-gram filters are mostly set up for suggestions |
| Ranking without tuning | Built-in relevancy ranking makes titles rank over descriptions | BM25; boosts by hand |
| Facets and filters | Counted over the same records as the list | The facet module |
| Vector and hybrid search | Your own embeddings, blended with text in one list | Vector search (HNSW) |
| Search statistics | Searches, zero results, journeys, in the console | |
| For AI agents (MCP) | A built-in MCP server | |
| A console to manage it | Datasets, fields, records, statistics |
What’s different
Why you should move to Indx Core
- 01
Out of the box
Lucene is a toolkit for building a search engine. Indx Core is one, ready to search.
- 02
Faster at typos
A misspelled word is looked up, not searched for every variation.
- 03
For .NET
If your application is .NET, Indx Core runs in it with nothing else to host.
Measured
The same data, the same searches, Lucene’s settings
1,215,854 documents and 255 searches on one machine, with Indx Core set the way Lucene works.
Settings matched to Lucene
- Typos by the same rule on both sides: one from three letters, two from six. Indx's default; Lucene's FuzzyQuery set to Elasticsearch's AUTO, which is the same rule
- Every word of the query required on both sides. Lucene's own default is any of the words, and with it Lucene is slower still
- Both rank with BM25 over the same fields and weights; each otherwise as it ships
- Lucene without fuzzy search is faster on words spelt right, but finds no misspelt word
What ran: Indx Core
- IndxSearchLib 6.0.0-rc2, from NuGet
- .NET 10, a Release build, in the benchmark's own process
- ConfigurationParameters.Default; every field matched by its words, the weights as field weights
- A search: new Query(text, limit), the text finished (while typing, the last word as typed)
What ran: Lucene
- Lucene 10.6.0 on Java 27, a heap of up to 8 GB, timed inside the JVM
- StandardAnalyzer, BM25Similarity, the index in memory (ByteBuffersDirectory) merged to one segment
- Every field stored as well as indexed
- A search: a FuzzyQuery per word and field by AUTO (a TermQuery up to two letters), the weights as boosts, every word required (MUST)
- Median search0.53 msLucene: 14 ms
- Slowest 5 % (p95)5.0 msLucene: 23 ms
- Indexing 1,215,854 documents14 sLucene: 36 s
- Memory while serving3.4 GBLucene: 3.8 GB
The numbers
| Search | Indx Core | Lucene | Faster |
|---|---|---|---|
| As typed by shoppers | 0.53 | 14 | 26× |
| One typo added to a word | 1.2 | 13 | 11× |
| Two typos added to a word | 3.0 | 13 | 4.3× |
| Three typos | – | – | Not compared |
1,215,854 documents, from JSON to searchable · the bars on one time scale
The numbers
| Engine | Time | Documents a second |
|---|---|---|
| Indx Core | 14 s | 90,063 |
| Lucene | 36 s | 34,153 |
Memory while serving1.1× smaller
The numbers
| Engine | Memory | Index |
|---|---|---|
| Indx Core | 3.4 GB | – |
| Lucene | 3.8 GB | – |
Fair to say
When Lucene is the better choice
- Your application is Java and you want to build your own engine.
Switching
Moving from Lucene
- Use the Indx server over HTTP from any language, or IndxSearchLib in .NET.
- Load your documents as JSON and name the fields.
Questions
Indx Core or Lucene?
Why compare a .NET library with a Java one?
Lucene is the reference most search engines are measured against. The runs are on the same machine, data and queries, each warmed up.
Compare