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.
Release files for hashedixsearch 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hashedixsearch-1.2.4.tar.gz | 17.1 kB | Details |
Release files / hashedixsearch-1.2.4.tar.gz
| Download URL | hashedixsearch-1.2.4.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
53ec029cb0fe28d7fcc29226ec97ba10df2c5c82925e4b45c7b898fba2a7b28d
|
|
BLAKE2b-256 checksum How to use checksums |
31573c89459dad55f43ec51487c37876d7abdf6a3aef5f4482c391acaffa1105
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|