in-process search-engine for python
Project description
hashedixsearch
hashedixsearch
is a lightweight in-process search engine for Python, with support for stemming, synonyms, custom token analyzers, and query match highlighting.
Usage
from hashedixsearch import HashedIXSearch
index = HashedIXSearch(synonyms={'search': 'find'})
index.add(
doc_id=1,
doc='find the needle in the haystack'
)
results = index.query_batch(['search'])
for query, hits in results:
print(f'{query}: {hits}')
Tests
To run the hashedixsearch
test suite:
$ python -m unittest
This library uses hashedindex for tokenization and indexing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hashedixsearch-1.0.1.tar.gz
(15.4 kB
view details)
Built Distribution
File details
Details for the file hashedixsearch-1.0.1.tar.gz
.
File metadata
- Download URL: hashedixsearch-1.0.1.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.9.0-5-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
71f47004aa5d6e5ae90673adae4c96226c9f8203cfcfe08f41da2a8403e83cfd
|
|
MD5 |
cc9dc335591c3e586cee875ba3b66bd8
|
|
BLAKE2b-256 |
438d47901f47aed4eccf4a59c707dbba3d60b42f037982b0abcb0c1625434953
|
File details
Details for the file hashedixsearch-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: hashedixsearch-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.9.0-5-amd64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
3705c9fe0cbfe3eecb1f6490cfa46d17f42ae482f6ab909bbcdbbc7aeb1cd433
|
|
MD5 |
ea838d164d6db6c3c3167a84345cec96
|
|
BLAKE2b-256 |
081f23cf4e30b846f0798ee6bc1606c34aec0bf192adde2f14c3e97ec12b19bc
|