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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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