Skip to main content

Search query suggestion service

Project description

Search Suggestion

PyPI - Python Version PyPI PyPI - License

ℹ️ Overview

Build a search suggestion system with millions of search terms with ultrafast query speed. Search Suggestion utilizes comples trie data structures in the background to manage large datasets without compromising speed.

🏗️ Install

To install Search Suggestion, simply use pip:

pip install search-suggestion

🏁 Quick Start

from search_suggestion import SearchSuggestion

ss = SearchSuggestion()

ss.insert('cat')

ss.batch_insert(['car', 'dog'])

result = ss.search('c')
print(result)
> ['cat', 'car']

The number of search results defaults to 10, an optional max_suggestions can be provided to override this value.

result = ss.search('c', max_suggestions=20)

💭 Feature Suggestion

If you have any requests, please feel free to submit a ticket. I will try to prioritize based on available time.

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

search-suggestion-0.1.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

search_suggestion-0.1.0-py3-none-any.whl (5.2 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