Lucene search for DRF and elasticsearch-dsl
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
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
lucyfer-0.1.2.tar.gz
(7.2 kB
view details)
Built Distribution
lucyfer-0.1.2-py3-none-any.whl
(14.7 kB
view details)
File details
Details for the file lucyfer-0.1.2.tar.gz
.
File metadata
- Download URL: lucyfer-0.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bc14b1d3ec7afd00282ff92f4f10936df1d1613f0761ebad14941ad9edaa122 |
|
MD5 | 299a8c4041953772e2c4a096fa3202a6 |
|
BLAKE2b-256 | b09c379bee023e30f925c9c9aac417b3343692083c01bce77c211eb365fc15ae |
File details
Details for the file lucyfer-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: lucyfer-0.1.2-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cf9ee3d15b57d48389e792d4fa41a134c3a931c62150c16deee283709a580e6 |
|
MD5 | 24dd32ce7fa4389a6a6bf1646f918c8e |
|
BLAKE2b-256 | 2366c85cb2181b867f9e236a4d3fdfaeee6d7291df64d4f9b5b971d4fd779c3a |