Skip to content

Build a search suggestion system with millions of search terms with ultrafast query speed

License

Notifications You must be signed in to change notification settings

sofignatova/search-suggestion-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Suggestion

PyPI - Python Version PyPI PyPI - License GitHub Workflow Status

ℹ️ Overview

Build a search suggestion system with millions of search terms with ultrafast query speed. Search Suggestion utilizes complex 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.

About

Build a search suggestion system with millions of search terms with ultrafast query speed

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%