Django-Elasticsearch
Django-Elasticsearch is a package that allows indexing of django models in elasticsearch.
It utilizes elasticsearch-dsl
so you can use all the features developed by the elasticsearch-dsl-py team.
Installation
pip install django_elasticsearch
poetry add django_elasticsearch
Usage
At the moment, follow https://django-elasticsearch-dsl.readthedocs.io/
but replace django_elasticsearch_dsl
with django_elasticsearch
Features
- Based on elasticsearch-dsl so you can make queries with the Search class.
- Django signal receivers on save and delete for keeping Elasticsearch in sync.
- Management commands for creating, deleting, rebuilding and populating indices.
- Elasticsearch auto mapping from django models fields.
- Complex field type support (ObjectField, NestedField).
- Index fast using
parallel
indexing.
Elasticsearch Compatibility
The library is currently only compatible with Elasticsearch 7