Skip to main content

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


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.4.tar.gz (17.1 kB view details)

Uploaded Source

File details

Details for the file hashedixsearch-1.2.4.tar.gz.

File metadata

  • Download URL: hashedixsearch-1.2.4.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for hashedixsearch-1.2.4.tar.gz
Algorithm Hash digest
SHA256 53ec029cb0fe28d7fcc29226ec97ba10df2c5c82925e4b45c7b898fba2a7b28d
MD5 1f43174bc3dea65c7ca98851d1c03b9d
BLAKE2b-256 31573c89459dad55f43ec51487c37876d7abdf6a3aef5f4482c391acaffa1105

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page