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.4.tar.gz
(15.1 kB
view hashes)
Built Distribution
Close
Hashes for hashedixsearch-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05de4a90e8343619b9d78fa7f279eb7c5ff4a07fddf0c9d7e03e31235554fc81 |
|
MD5 | b1e596f74cc28e095a036eb1b35faa23 |
|
BLAKE2b-256 | 8d0c0611504ed862f52063e1845e2ec9bd7b03a966c64c772eaaf79f4dba95fb |