Lucene search for DRF
Project description
Lucene way search in django
("Django" AND "DRF") OR ("Elasticserach-DSL" AND "Django Rest Elasticsearch")
Installation
Only for Django with DRF:
pip install lusya
For Django with DRF and Elasticsearch-dsl with DRF:
pip install lucyfer
Dependencies
lucyfer | lusya | |
---|---|---|
lucyparser | + | + |
Django | + | + |
djangorestframework | + | + |
django-rest-elasticsearch | + | - |
elasticsearch-dsl | + | - |
Usage Examples
Include search backend class in DEFAULT_FILTER_BACKENDS
in settings.py
instead of default search backend:
# todo
Create serachsets.py
in application and fill it:
# todo
Include searchset class in your ModelViewSet
:
# todo
Now you can use lucene-way syntax for your view:
# todo
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
lusya-0.1.2.tar.gz
(6.1 kB
view hashes)
Built Distribution
lusya-0.1.2-py3-none-any.whl
(10.9 kB
view hashes)