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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file search-suggestion-0.1.0.tar.gz.
File metadata
- Download URL: search-suggestion-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa434cf92ac2f8bca1ce9c156b07e60085d5cc0a19feb99d7fb9a2178ca8bddf
|
|
| MD5 |
4eaa1f95a3b2a2d25f799a1b9a8c3485
|
|
| BLAKE2b-256 |
0c59b743441cae582511d623c1b274f4be8068c64f07818d629dd1c2d8e79eb1
|
File details
Details for the file search_suggestion-0.1.0-py3-none-any.whl.
File metadata
- Download URL: search_suggestion-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c143b73b3004b22b53e02ceaa4703ab13d5b79e222762106918d882a422d123
|
|
| MD5 |
5ae558ce961bf19092b4331c5a7f93f7
|
|
| BLAKE2b-256 |
dda2ed00229f49b75ea14935053227da0542da2d8e8c34e6f5fd2ee3ec0e4635
|