forked from kirberich/simple_search
-
Notifications
You must be signed in to change notification settings - Fork 0
A simple search API
License
mrfuxi/simple_search
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a really basic search engine for Django. To use, simply add simple_search to INSTALLED_APPS and register models for searching as follows: class MyModel(Model): field1 = models.CharField(max_length=1000) class Search: fields = [ "field1" ] Then import simple_search.models.search and call: search(MyModel, 'this is a "search string"') search() can take pagination options. There is still plenty unimplemented (see the comment in models.py) The ranking algorithm prioritises multiple word matches and uncommon matches.
About
A simple search API
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%