Search query suggestion service
Project description
Search Suggestion
ℹ️ 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
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 Distribution
Built Distribution
Close
Hashes for search_suggestion-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c143b73b3004b22b53e02ceaa4703ab13d5b79e222762106918d882a422d123 |
|
MD5 | 5ae558ce961bf19092b4331c5a7f93f7 |
|
BLAKE2b-256 | dda2ed00229f49b75ea14935053227da0542da2d8e8c34e6f5fd2ee3ec0e4635 |