Skip to main content

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.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

lucyfer-0.1.1-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file lucyfer-0.1.1.tar.gz.

File metadata

  • Download URL: lucyfer-0.1.1.tar.gz
  • Upload date:
  • Size: 7.0 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

Hashes for lucyfer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 22b8f8020622094a4b8b054718b3221ba8ffc5ff9a5bcaa85b72729322877791
MD5 d826c715b8812e3849e9911320bd4518
BLAKE2b-256 d8b27151e1ba17b85e43eb9115e7c82082f90d256ac785357142fe14a76c2d53

See more details on using hashes here.

File details

Details for the file lucyfer-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lucyfer-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.4 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

Hashes for lucyfer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd490b04384acaa6368d78a6fe1d7d3025174e2060b7a7a366fe335a863e05f3
MD5 6f3b85ca85824735758ce13edfeed492
BLAKE2b-256 fbe644fab8662e63e630ea71202e21795be838b6823283961b943a667770380b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page