in-process search-engine for python
Project description
hashedixsearch
hashedixsearch
is a lightweight in-process search engine for Python, with support for stemming, custom token analyzers, and query match highlighting.
Usage
from hashedixsearch import HashedIXSearch
doc = 'find the needle in the haystack'
index = HashedIXSearch()
index.add(doc_id=1, doc=doc)
results = index.query_batch(['find'])
for query, hits in results:
for hit in hits:
# <mark>find</mark> the needle in the haystack
markup = index.highlight(doc=doc, terms=hit['terms'])
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.2.0.tar.gz
(14.6 kB
view hashes)
Built Distribution
Close
Hashes for hashedixsearch-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32074000f77dd86400234ec20b0470af61b7a25847449f1b6f94990986f4599d |
|
MD5 | b1c51b6a7d559ca1016d1bb5557d07b8 |
|
BLAKE2b-256 | 0ec6666851c0c42821b987d6b7600e78261c75f50a9358ba1a5e007046af575d |