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'])
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for hashedixsearch-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39a2ac022a56a8cb28612114248ba87a50cb58cb9b7045edf32dbceb8b0a1aae |
|
MD5 | 09cff7414ac71238a0920e9bf175019b |
|
BLAKE2b-256 | f3434bef6035ac84ac32d8557179e3561d729decfd9d8bdd5e3299c7943ea7a6 |