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.5.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for hashedixsearch-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0fc84575df512dbf44b937153403d41f1626a3412efc06b9cd87b2e570fd424 |
|
MD5 | 434731683e93bf10e9a74c2b1123a364 |
|
BLAKE2b-256 | bde6b31caf6c5a43890a7b7ffb9455c6d72137260d07b082ee5c00db6283cc42 |