百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

alexandria

> 编程语言
开源

全文搜索引擎驱动 Alexandria.org - 开放式搜索引擎。

200 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

全文搜索引擎驱动 Alexandria.org - 开放式搜索引擎。

Alexandria.org

  1. Coding Rules
  2. Full text indexes
  3. Hash table

Build instructions with docker

  1. Checkout repo WINDOWS USERS: You need to run 'git config --global core.autocrlf false' before checking out the repository
bash
git clone [email protected]:alexandria-org/alexandria.git
  1. Build docker image
bash
docker build . -t alexandria
  1. Run container
bash
docker container run --name alexandria -v ${PWD}:/alexandria -it -d alexandria
  1. Attach to container.
bash
docker exec -it alexandria /bin/bash
  1. Navigate to directory
cd /alexandria
  1. Initialize docker
scripts/init-docker.sh
  1. Configure with cmake
bash
mkdir build; cd build; cmake ..
  1. Build all
make -j4
  1. Run test suite
./run_tests

How to build manually (not recommended)

  1. Configure the system (Tested on Ubuntu 20.04)
# Will alter your system and install dependencies with apt.
./scripts/install-deps.sh

# Will download and build zlib, aws-lambda-cpp and aws-sdk-cpp will only alter the local directory.
./scripts/build-deps.sh
  1. Build with cmake
bash
mkdir build
cd build

cmake .. -DCMAKE_BUILD_TYPE=Debug
or
cmake .. -DCMAKE_BUILD_TYPE=Release

make -j24
  1. Download test data to local server. To run the test suite you need to install nginx and pre-download all the data: Configure local nginx test data server

  2. Create output directories. Note, this will create a bunch of directories in the /mnt so make sure you don't have anything there.

./scripts/prepare-output-dirs.sh
  1. Run the test suite
bash
cd build
make run_tests -j24
./run_tests

Notes

On nodes with spinning disks we should turn off energy saving:

hdparm -B 255 /dev/sda

Debugging notes

Debugging scraper with gdb:

By default, gdb captures SIGPIPE of a process and pauses it. However, some program ignores SIGPIPE. So, the default behavour of gdb is not desired when debugging those program. To avoid gdb stopping in SIGPIPE, use the folloing command in gdb: handle SIGPIPE nostop noprint pass

Issues· 11 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++search-engine

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言