django-oscar-es provides an integration between Django-Oscar and Elasticsearch. It's built on top of django-es-kit, python-elasticsearch-dsl and django-elasticsearch-dsl.
pip install django-oscar-es
Add "django_oscar_es.apps.DjangoOscarEsConfig"
to your INSTALLED_APPS
.
As it leverages django-elasticsearch-dsl
under the hood, you must also configure this for it to be able to connect to your elasticsearch instance. As of writing this, that means adding the ELASTICSEARCH_DSL
setting, eg:
ELASTICSEARCH_DSL = {
"default": {
"hosts": "http://localhost:9200",
}
}