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.3.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for hashedixsearch-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 330491a71a12c3d4d6d7789dadf51799c5f90b3f9dc25b06a42307f8df046c6e |
|
MD5 | 13da17b58dcb33c443b31b8e16b0f8b2 |
|
BLAKE2b-256 | cf472a9f043db3eac8017971deb8af16409714201d93dddd8419d80130eccb71 |