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 hashes)
Built Distribution
Close
Hashes for hashedixsearch-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3705c9fe0cbfe3eecb1f6490cfa46d17f42ae482f6ab909bbcdbbc7aeb1cd433 |
|
MD5 | ea838d164d6db6c3c3167a84345cec96 |
|
BLAKE2b-256 | 081f23cf4e30b846f0798ee6bc1606c34aec0bf192adde2f14c3e97ec12b19bc |