# Python package implementing search indices backed by Rust
## Installation
Make sure you have
[Faiss](https://github.com/facebookresearch/faiss/blob/main/INSTALL.md)
installed.
Install from PyPI (only built for Python 3.12+ on Linux)
```
pip install search-index
```
## Manual installation
Make sure you have Faiss and Rust installed, then do the following:
```bash
git clone https://github.com/bastiscode/search-index.git
cd search-index
pip install maturin[patchelf]
maturin develop --release
```
## Usage
See `build.py` and `query.py` for examples on how to build and query an index.
## Search indices
Prefix keyword index with one of the following score functions:
- keyword occurrence
Similarity index with one of the following index types:
- flat index (brute-force search)
- inverted index (bucket search)
- inverted index + HNSW
Both search indices also support searching only in a subset of the indexed records.
Raw data
{
"_id": null,
"home_page": null,
"name": "search-index",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "utilities, index, prefix, similarity, search",
"author": null,
"author_email": "Sebastian Walter <swalter@cs.uni-freiburg.de>",
"download_url": null,
"platform": null,
"description": "# Python package implementing search indices backed by Rust\n\n## Installation\n\nMake sure you have\n[Faiss](https://github.com/facebookresearch/faiss/blob/main/INSTALL.md)\ninstalled.\n\nInstall from PyPI (only built for Python 3.12+ on Linux)\n\n```\npip install search-index\n```\n\n## Manual installation\n\nMake sure you have Faiss and Rust installed, then do the following:\n\n```bash\ngit clone https://github.com/bastiscode/search-index.git\ncd search-index\npip install maturin[patchelf]\nmaturin develop --release\n```\n\n## Usage\n\nSee `build.py` and `query.py` for examples on how to build and query an index.\n\n## Search indices\n\nPrefix keyword index with one of the following score functions:\n\n- keyword occurrence\n\nSimilarity index with one of the following index types:\n\n- flat index (brute-force search)\n- inverted index (bucket search)\n- inverted index + HNSW\n\nBoth search indices also support searching only in a subset of the indexed records.\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Search indices backed by Rust",
"version": "0.4.0",
"project_urls": {
"Github": "https://github.com/bastiscode/search-index"
},
"split_keywords": [
"utilities",
" index",
" prefix",
" similarity",
" search"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6244c1806ad1a3ec2920fd5fb495ce35e9c75b2046a3bb405e2c08f982d1d843",
"md5": "3e121307a3db1239d29cdcf26a741060",
"sha256": "7706fd92f67157501fffc0255bebe27a2847945d87c8abb39ffe34b4577ca67f"
},
"downloads": -1,
"filename": "search_index-0.4.0-cp312-abi3-manylinux_2_34_x86_64.whl",
"has_sig": false,
"md5_digest": "3e121307a3db1239d29cdcf26a741060",
"packagetype": "bdist_wheel",
"python_version": "cp312",
"requires_python": ">=3.12",
"size": 714135,
"upload_time": "2025-09-08T06:35:59",
"upload_time_iso_8601": "2025-09-08T06:35:59.481484Z",
"url": "https://files.pythonhosted.org/packages/62/44/c1806ad1a3ec2920fd5fb495ce35e9c75b2046a3bb405e2c08f982d1d843/search_index-0.4.0-cp312-abi3-manylinux_2_34_x86_64.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-08 06:35:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "bastiscode",
"github_project": "search-index",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "search-index"
}