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

Indx Core0 answered
Lucene0 answered

Each search’s time drawn from the measured distribution, the same draw for both

At a glance

Indx Core and Lucene, side by side

FeatureIndx CoreLucene
Runs asA .NET library (Indx Core) and an HTTP server (Indx)A Java library
Where it runsSelf-hosted: your machines or your Azure subscriptionIn your process (JVM)
LicenceSource available (PolyForm Shield)Apache 2.0
Typo tolerance, out of the boxUp to three edits a word, then pattern matching keeps guessingFuzzyQuery, two edits at most
Matching inside wordsPattern matching, field by field, ranked with everything elseNot in its ranking; n-gram filters are mostly set up for suggestions
Ranking without tuningBuilt-in relevancy ranking makes titles rank over descriptionsBM25; boosts by hand
Facets and filtersCounted over the same records as the listThe facet module
Vector and hybrid searchYour own embeddings, blended with text in one listVector search (HNSW)
Search statisticsSearches, zero results, journeys, in the console
For AI agents (MCP)A built-in MCP server
A console to manage itDatasets, fields, records, statistics

What’s different

Why you should move to Indx Core

  1. 01

    Out of the box

    Lucene is a toolkit for building a search engine. Indx Core is one, ready to search.

  2. 02

    Faster at typos

    A misspelled word is looked up, not searched for every variation.

  3. 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
Indx CoreLuceneThe median of each kind of search; the number at the end is how many times faster.
The numbers
Median latency by kind of search, in milliseconds
SearchIndx CoreLuceneFaster
As typed by shoppers0.531426×
One typo added to a word1.21311×
Two typos added to a word3.0134.3×
Three typos––Not compared
Time0.0 s
Indx Core0 documents
Lucene0 documents

1,215,854 documents, from JSON to searchable · the bars on one time scale

The numbers
Indexing
EngineTimeDocuments a second
Indx Core14 s90,063
Lucene36 s34,153

Memory while serving1.1× smaller

Indx Core
3.4 GB
Lucene
3.8 GB
The numbers
Memory and index size
EngineMemoryIndex
Indx Core3.4 GB–
Lucene3.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

  1. Use the Indx server over HTTP from any language, or IndxSearchLib in .NET.
  2. 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

Indx Core against the others

Try it on your own data