Xapian
activeby Xapian project (Olly Betts and contributors) · since 2002 · also known as Xapian search engine library, Omega
Mature C++ probabilistic full-text search library with bindings for a dozen languages.
Overview
Xapian is an open-source C++ library for adding full-text search to applications. It ranks results with probabilistic models such as BM25, and supports phrase and proximity queries, boolean filters, stemming in many languages, spelling correction, synonyms, faceting, relevance feedback and geospatial filtering, with on-disk databases that can be searched together or remotely. It grew out of the Muscat engine and first shipped as Xapian 0.5.0 in 2002; Omega, a bundled search application, handles indexing documents and websites. Release 2.1.0 (August 2026) is current, with 1.4.x still maintained. It suits teams that want an embeddable library rather than a search server.
Strengths & trade-offs
Strengths
- +Embeddable library: no JVM or separate server to operate
- +High-quality ranking (BM25 and other models) with stemming for many languages
- +Bindings for a dozen languages and decades of production use
- +Actively released, with a long-supported stable branch
Trade-offs
- −GPL licence complicates embedding in proprietary software
- −No built-in clustering, REST API or analytics features of Elasticsearch-style servers
- −Smaller ecosystem and fewer tutorials than Lucene-based tools
Great for
- +Search inside desktop and server applications
- +Indexing documentation, mail archives or websites with Omega
- +Search in Python, Perl or PHP apps without running a search server
Think twice for
- −Log analytics and aggregations at scale
- −Vector or semantic search
Capabilities
Native or official first-party support · 5 of 25 tracked
Scale & consistency
- Comfortable data size
- Medium · ≤ 10 TB
- Horizontal scaling
- Manual
- Multi-region
- No
- Transactions
- Limited ACID
- Consistency
- Strong
- Schema
- Schemaless
- Architecture
- Embedded, Client server
- Query languages
- Xapian query parser syntax, Query API
Shard by splitting into multiple databases and searching them together, locally or via the remote backend.
Deployment
Ecosystem
Alternatives to Xapian
The Java search library at the heart of Elasticsearch, OpenSearch and Solr, now with HNSW vectors.
xapian vs apache-lucene →Lucene-inspired full-text search library in Rust, the engine under Quickwit and ParadeDB.
xapian vs tantivy →Veteran C++ full-text search server with SphinxQL, still shipping as Sphinx 3.
xapian vs sphinx →Fast SQL-first search database, forked from Sphinx, with columnar storage and vector KNN.
xapian vs manticore-search →Developer-friendly Rust search engine with typo tolerance and built-in hybrid semantic search.
xapian vs meilisearch →Lucene-based distributed search and analytics engine for text, vectors, logs and metrics.
xapian vs elasticsearch →Xapian FAQ
What is Xapian?
Xapian is a search engine database by Xapian project (Olly Betts and contributors), first released in 2002. Xapian is an open-source C++ library for adding full-text search to applications. It ranks results with probabilistic models such as BM25, and supports phrase and proximity queries, boolean filters, stemming in many languages, spelling correction, synonyms, faceting, relevance feedback and geospatial filtering, with on-disk databases that can be searched together or remotely. It grew out of the Muscat engine and first shipped as Xapian 0.5.0 in 2002; Omega, a bundled search application, handles indexing documents and websites. Release 2.1.0 (August 2026) is current, with 1.4.x still maintained. It suits teams that want an embeddable library rather than a search server.
Is Xapian open source?
Yes. Xapian is open source. License: GNU GPL v2 or later.
Does Xapian support ACID transactions?
Partly. Xapian offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.
Does Xapian scale horizontally?
Xapian has no built-in sharding; scaling out means partitioning data in your application. It is comfortable at medium scale (≤ 10 TB).
How can I run Xapian?
You can self-host it and embed it in your application.
What is Xapian best for?
Xapian is a strong fit for search inside desktop and server applications; indexing documentation, mail archives or websites with Omega; and search in Python, Perl or PHP apps without running a search server. Think twice for log analytics and aggregations at scale.
What are the best alternatives to Xapian?
Common alternatives to Xapian include Apache Lucene, Tantivy, Sphinx, Manticore Search and Meilisearch. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.
How popular is Xapian?
Xapian ranks #185 of 844 databases on the WhichDB Score (18.0/100), and #17 among search engine databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.



