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.
Metadata
Release files for hashedixsearch 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hashedixsearch-1.0.1.tar.gz | 15.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hashedixsearch-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.5 kB
Release files / hashedixsearch-1.0.1.tar.gz
| Download URL | hashedixsearch-1.0.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71f47004aa5d6e5ae90673adae4c96226c9f8203cfcfe08f41da2a8403e83cfd
|
|
BLAKE2b-256 checksum How to use checksums |
438d47901f47aed4eccf4a59c707dbba3d60b42f037982b0abcb0c1625434953
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.9.0-5-amd64
|
Release files / hashedixsearch-1.0.1-py3-none-any.whl
| Download URL | hashedixsearch-1.0.1-py3-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3705c9fe0cbfe3eecb1f6490cfa46d17f42ae482f6ab909bbcdbbc7aeb1cd433
|
|
BLAKE2b-256 checksum How to use checksums |
081f23cf4e30b846f0798ee6bc1606c34aec0bf192adde2f14c3e97ec12b19bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.9.0-5-amd64
|