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, 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


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)

Uploaded Source

Built Distribution

hashedixsearch-1.0.4-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

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