# Install xapian with Homebrew, Nix

C++ search engine library. Version 2.0.0 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:xapian
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install xapian
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#xapian
```

  Evidence: nixpkgs package indexes: xapian from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

## Package facts

- **Package key:** brew:xapian
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/xapian>
- **Version:** 2.0.0
- **Source summary:** C++ search engine library
- **Homepage:** <https://xapian.org/>
- **Repository:** <https://git.xapian.org/xapian>
- **Upstream docs:** <https://xapian.org/docs>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://oligarchy.co.uk/xapian/2.0.0/xapian-core-2.0.0.tar.xz>
- **Last updated:** 2026-06-22T14:06:41-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- copydatabase (cli)
- simpleexpand (cli)
- simpleindex (cli)
- simplesearch (cli)
- xapian-check (cli)
- xapian-compact (cli)
- xapian-config (cli)
- xapian-delve (cli)
- xapian-metadata (cli)
- xapian-pos (cli)
- xapian-progsrv (cli)
- xapian-quest (cli)
- xapian-replicate (cli)
- xapian-replicate-server (cli)
- xapian-tcpsrv (cli)
- copydatabase (alias)
- simpleexpand (alias)
- simpleindex (alias)
- simplesearch (alias)
- xapian-check (alias)
- xapian-compact (alias)
- xapian-config (alias)
- xapian-delve (alias)
- xapian-metadata (alias)
- xapian-pos (alias)
- xapian-progsrv (alias)
- xapian-quest (alias)
- xapian-replicate (alias)
- xapian-replicate-server (alias)
- xapian-tcpsrv (alias)

## Build dependencies

- python@3.14
- sphinx-doc

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.0.0
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://xapian.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

Xapian is an open-source C++ search engine library for adding full-text indexing and search to applications. It provides probabilistic ranking, boolean operators, phrase and proximity search, stemming, spelling correction, synonyms, snippets, facets, and language bindings for many ecosystems.

Unlike a standalone search server first, Xapian is primarily a library and toolkit. Developers embed it into applications, while Omega supplies a packaged indexing and CGI search application built on top of Xapian.

### Project history

Xapian descends from more than 30 years of commercial and academic information-retrieval work. The project is partly derived from Open Muscat, a GPL release from BrightStation PLC that replaced the older proprietary Muscat 3.6 system written largely in BCPL.

Muscat was originally written by Dr. Martin Porter at the University of Cambridge. In 1984 Porter and John Snyder founded Cambridge CD Publishing to commercialize the technology; the company became Muscat Ltd, was acquired by Maid PLC, and later became part of the Dialog Corporation and BrightStation story.

After BrightStation, former employees and Open Muscat community developers continued from the last GPLed version. The project was first called OmSeek, but a naming complaint over similarity to Omsee led the developers to choose the name Xapian.

### Adoption history

Xapian's adoption came from being embeddable, portable, and mature: it exposes search as a programmer library rather than requiring every application to run a separate search service. The project lists bindings for languages including Perl, Python, PHP, Java, Tcl, C#, Ruby, Lua, Erlang, Node.js, and R.

Known users include the University of Cologne library OPAC through OpenBib, Die Zeit search, Debian website and mailing-list search, TheyWorkForYou, WhatDoTheyKnow, Recoll desktop search, Notmuch email search, MoinMoin, Roundup, Doxygen searchable documentation, and Kiwix. Those examples show Xapian's range from web search to mail, desktop, documentation, and offline content.

### How it is used

Developers use Xapian by creating or updating databases of documents, adding terms and values, and querying through the library's query parser and ranking models. The command-line tools in the package support checking, compacting, copying, probing, replicating, and serving Xapian databases.

Omega covers the ready-made website-search use case: omindex or scriptindex creates databases, omega serves searches through CGI, and templates define presentation. Xapian itself covers lower-level application search where callers want control over indexing, weighting, filtering, and query construction.

### Why package nerds care

Xapian is a quietly important package because many users meet it indirectly through search features in mail clients, desktop search, wikis, issue trackers, documentation generators, and web archives. It is the kind of library package that makes a system's search boxes work without being the visible application.

### Timeline

- 1984: Martin Porter and John Snyder found Cambridge CD Publishing around the Muscat technology.
- 1990s: Muscat evolves commercially through Muscat Ltd, Maid PLC, Dialog Corporation, and BrightStation PLC.
- Early 2000s: Developers continue from the GPLed Open Muscat code, initially as OmSeek and then as Xapian.
- 2002-09-20: Xapian 0.5.0 is identified by secondary sources as the first official Xapian release.
- 2026-03-16: Xapian 2.0.0 is released as the current stable branch according to the project homepage.

### Related projects

- Open Muscat is Xapian's direct open-source ancestor.
- Omega is the packaged web and intranet search application supplied by the Xapian project.
- Recoll, Notmuch, MoinMoin, Doxygen, and Kiwix are notable downstream or integrating projects.

### Sources

- <https://en.wikipedia.org/wiki/Xapian>
- <https://xapian.org/>
- <https://xapian.org/docs/omega/overview.html>
- <https://xapian.org/features>
- <https://xapian.org/history>
- <https://xapian.org/users>


## Security Notes

broad file, network, media, or database tool signal. generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- broad file, network, media, or database tool signal
- generalized runtime or code generation signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** xapian
- **Version Scheme:** 1
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - xapian: normalized package name match | nixpkgs package indexes: xapian from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [python@3.14](https://www.automicvault.com/pkg/brew/python-3-14/) - Build dependency declared by Homebrew.
- [sphinx-doc](https://www.automicvault.com/pkg/brew/sphinx-doc/) - Build dependency declared by Homebrew.
- [libkiwix](https://www.automicvault.com/pkg/brew/libkiwix/) - Popular package that depends on this formula.
- [mu](https://www.automicvault.com/pkg/brew/mu/) - Popular package that depends on this formula.
- [nmail](https://www.automicvault.com/pkg/brew/nmail/) - Popular package that depends on this formula.
- [notmuch](https://www.automicvault.com/pkg/brew/notmuch/) - Popular package that depends on this formula.
- [omega](https://www.automicvault.com/pkg/brew/omega/) - Popular package that depends on this formula.
- [groonga](https://www.automicvault.com/pkg/brew/groonga/) - Shares av.db curated category or tags: cli, data, indexing, search, search-engine.
- [hyperestraier](https://www.automicvault.com/pkg/brew/hyperestraier/) - Shares av.db curated category or tags: cli, data, indexing, search, search-engine.
- [manticoresearch](https://www.automicvault.com/pkg/brew/manticoresearch/) - Shares av.db curated category or tags: cli, data, indexing, search, search-engine.
- [ngt](https://www.automicvault.com/pkg/brew/ngt/) - Shares av.db curated category or tags: cli, data, indexing, library, search.
- [opensearch](https://www.automicvault.com/pkg/brew/opensearch/) - Shares av.db curated category or tags: cli, data, search, search-engine.
- [solr](https://www.automicvault.com/pkg/brew/solr/) - Shares av.db curated category or tags: cli, data, indexing, search.
- [sonic](https://www.automicvault.com/pkg/brew/sonic/) - Shares av.db curated category or tags: cli, data, indexing, search.

## Combined YAML source

View the package source record on GitHub. [combined/xapian.yml](https://github.com/automic-vault/db/blob/main/combined/xapian.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
