Xapiand: 一款 RESTful 搜索引擎
Xapiand is A Modern Highly Available Distributed RESTful Search and Storage Engine built for the Cloud and with Data Locality in mind. It takes JSON (or MessagePack) documents and indexes them efficiently for later retrieval.
Official site is at https://kronuz.github.io/Xapiand
A single C++20 binary that gives you, out of the box:
The design goal throughout is to keep the moving pieces few and the defaults sane: one binary does something useful immediately, and still scales out across a cluster when you need it to.
A note on scope. This repository still vendors the customized Xapian fork and libyaml bridge under
src/. The old in-tree copies of cuuid, msgpack, prometheus-cpp, libev, LZ4, RapidJSON, cppcodec, TCLAP, fmt, and ChaiScript are gone; CMake now pulls the extractedKronuz/*libraries and upstream prometheus-cpp core withFetchContent. See ARCHITECTURE.md for the full map.
Requires a C++20 compiler and CMake ≥ 3.16. Dependencies are fetched
automatically at configure time via CMake FetchContent (see below).
mkdir build && cd build
cmake ..
makeNotable CMake options (all default on unless noted):
| Option | Default | What it does |
|---|---|---|
CLUSTERING |
ON | Remote clustering (discovery + replication). |
DATABASE_WAL |
ON | Per-shard write-ahead log. |
DATA_STORAGE |
ON | Haystack-style document storage volumes. |
TRACEBACKS |
OFF (ON in Debug) | Pretty backtraces + cross-thread stack dumps. |
ASSERTS |
OFF (ON in Debug) | Internal assertions. |
TRACKED_MEM |
OFF | Allocator that attributes memory to call sites. |
BUILD_TESTS / BUILD_BENCHMARKS |
OFF | Build the test / benchmark suites. |
Xapiand runs entirely on the standalone-Asio
reactor runtime (there is no libev), and is
assembled from 59 standalone Kronuz/* libraries plus a few third-party ones,
all wired in by CMake FetchContent at configure time. The runtime topology, the
dependency layering diagram, and the full dependency tree live in
ARCHITECTURE.md; see
Runtime architecture and
Dependencies.
The load-bearing pieces: reactor (the Asio server runtime), cluster (Bus gossip +
Raft), http (HTTP transport), flume (framed file transfer), storage (append-only
blob store), io / fs / system (POSIX I/O, filesystem, resource introspection),
plus the extracted cuuid condensed-UUID value type, the msgpack keystone
(msgpack-c + COW MsgPack + xchange + patcher), a foundation of strings /
repr / logger / traceback / compressors, and the search-domain libraries.
MIT — Copyright © 2015–2026 Dubalu LLC.
Note that the bundled Xapian fork under src/xapian/ carries Xapian's own
(GPL) license; see ARCHITECTURE.md before
reusing code from this tree.
暂无开放 Issues,或尚未同步最近议题。