Compare · Search libraries
Indx Core vs Lucene.NET
Lucene.NET puts a search library in your .NET app, and leaves the search to you. Indx Core does the same with search that works out of the box.
1.0×
faster at the median: 0.53 ms against Lucene.NET’s 11 ms, with Lucene.NET’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.NET, side by side
| Feature | Indx Core | Lucene.NET |
|---|---|---|
| Runs as | A .NET library (Indx Core) and an HTTP server (Indx) | A .NET library |
| Where it runs | Self-hosted: your machines or your Azure subscription | In your process |
| 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 | TF-IDF by default, BM25 to set yourself; boosts by hand |
| Facets and filters | Counted over the same records as the list | A separate facets module |
| Vector and hybrid search | Your own embeddings, blended with text in one list | Not in 4.8 |
| 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
Search, not a toolkit
No analyzers, query parsers or scoring to assemble. Load JSON, name the fields, search.
- 02
Current .NET
Built for .NET 10. Lucene.NET’s current version is still a 4.8 beta.
- 03
Typos and facets included
Three typos a word, filters and facets counted over the same records, in the one package.
Measured
The same data, the same searches, Lucene.NET’s settings
1,215,854 documents and 255 searches on one machine, with Indx Core set the way Lucene.NET works.
Settings matched to Lucene.NET
- Typos by the same rule on both sides: one from three letters, two from six. Indx's default; Lucene.NET's FuzzyQuery set to Elasticsearch's AUTO, which is the same rule
- Every word of the query required on both sides. Lucene.NET's own default is any of the words, and with it Lucene.NET is slower still
- Both rank with BM25 over the same fields and weights; each otherwise as it ships
- Lucene.NET 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.NET
- Lucene.NET 4.8.0-beta00018 on .NET 10, a Release build
- StandardAnalyzer without stop words (as Lucene 10's), BM25Similarity, the index in memory (RAMDirectory) 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.NET: 11 ms
- Slowest 5 % (p95)5.0 msLucene.NET: 19 ms
- Indexing 1,215,854 documents14 sLucene.NET: 42 s
- Memory while serving3.4 GBLucene.NET: 3.8 GB
The numbers
| Search | Indx Core | Lucene.NET | Faster |
|---|---|---|---|
| As typed by shoppers | 0.53 | 11 | 21× |
| One typo added to a word | 1.2 | 11 | 9.2× |
| Two typos added to a word | 3.0 | 10 | 3.5× |
| 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.NET | 42 s | 29,157 |
Memory while serving1.1× smaller
The numbers
| Engine | Memory | Index |
|---|---|---|
| Indx Core | 3.4 GB | – |
| Lucene.NET | 3.8 GB | – |
Fair to say
When Lucene.NET is the better choice
- You need Lucene’s full query language or its analyzers for many languages.
- You share indexes with Java Lucene.
Switching
Moving from Lucene.NET
- Add IndxSearchLib from NuGet.
- Load the same documents as JSON.
- Name the fields to search, filter and facet.
- Replace your query building with one Search call.
Questions
Indx Core or Lucene.NET?
Is Indx Core free?
Free up to 100,000 documents, and beyond that with a free licence from license.indx.co.
Compare