django-elasticsearch-dsl
Wrapper around elasticsearch-dsl-py for django models
Decision gist · record as of 2026-08-14
Yes, if you need Elasticsearch integration with Django and are running Django 4.2+ with Python 3.9+. The low install friction, permissive license, and active repository make it a solid choice. However, verify that your Elasticsearch server version matches the library's major version, and check recent commits to confirm the package still meets your needs given the aging maintenance status.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django >= 4.2, Python 3.9+, and a running Elasticsearch instance matching the library's major version
- Low install friction with only two runtime dependencies (elasticsearch and six).
- Maintenance status is aging—last release was 387 days ago—but the repository remains active with recent commits and no archived status.
License · maintenance · safety
Apache Software License 2.0 (permissive) — Licensed under Apache Software License 2.0, a permissive license that allows commercial use, modification, and distribution with minimal restrictions.
last release 2025-07-23 (387 days) · last repo commit 2025-07-23 · 1,056 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 496,986 downloads/mo, #6,334 on PyPI
Alternatives
Verify before relying
pip install django-elasticsearch-dsl
from django_elasticsearch_dsl import Document, Index
class MyDocument(Document):
class Index:
name = 'my-index'
# Sync with Django signals automatically on save/delete- Whether version 9.0 of this package is compatible with Elasticsearch 9.0+ as the description suggests
- Current development activity and whether the aging maintenance status reflects active ongoing support
What it is and what it does
Django Elasticsearch DSL is a wrapper around elasticsearch-py that automates indexing of Django model instances into Elasticsearch. It handles the mapping of Django model fields to Elasticsearch field types, provides Django signal receivers to keep indices synchronized when models are saved or deleted, and exposes management commands for index lifecycle operations (create, delete, rebuild, populate). The package supports complex field types like ObjectField and NestedField, and includes parallel indexing for performance.
The library is designed for developers who need full-text search or advanced querying capabilities in Django applications. It abstracts away much of the boilerplate around document definition and synchronization while still exposing the full elasticsearch-py Search API for complex queries. Version compatibility is strict: you must use the major version of the library that matches your Elasticsearch server version.
Use it for
- Add full-text search to a Django application by automatically indexing model instances and querying them via Elasticsearch
- Keep a search index synchronized with a Django database using automatic signal handlers on model save and delete
- Rebuild or repopulate Elasticsearch indices using management commands when schema or data changes
- Map complex Django field types (including nested and object fields) to Elasticsearch mappings without manual configuration
- Speed up large-scale indexing operations using parallel indexing during initial index population
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need Elasticsearch integration with Django and are running Django 4.2+ with Python 3.9+.
The low install friction, permissive license, and active repository make it a solid choice. However, verify that your Elasticsearch server version matches the library's major version, and check recent commits to confirm the package still meets your needs given the aging maintenance status.
Install
django-elasticsearch-dsl on PyPI
Before you install
Low install friction with only two runtime dependencies (elasticsearch and six). Maintenance status is aging—last release was 387 days ago—but the repository remains active with recent commits and no archived status.
Requires Django >= 4.2, Python 3.9+, and a running Elasticsearch instance matching the library's major version
License in practice
Licensed under Apache Software License 2.0, a permissive license that allows commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install django-elasticsearch-dsl
from django_elasticsearch_dsl import Document, Index
class MyDocument(Document):
class Index:
name = 'my-index'
# Sync with Django signals automatically on save/delete
Verify before relying
- Whether version 9.0 of this package is compatible with Elasticsearch 9.0+ as the description suggests
- Current development activity and whether the aging maintenance status reflects active ongoing support
Package facts
| License | Apache Software License 2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packageselasticsearchsix |
| Maintenance | Aging 387 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 496,986 / month, #6,334 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaFramework :: DjangoFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9 |
Evidence: django_elasticsearch_dsl-9.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django elasticsearch indexing”
- django-elasticsearch-dslIndexes Django model instances into Elasticsearch and keeps them…
- modelsearchIndexes Django models into Elasticsearch, OpenSearch, or native…
- django-haystackHaystack provides a unified search API for Django that lets you swap…
Give your agent the search over MCP, or paste the wish link into any chat.
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object Relational Mapper (ORM) that provides both a high-level ORM layer for declarative object persistence and a Core SQL construction system for direct database abstraction and query building.
psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.
Alembic generates and manages database schema migrations for SQLAlchemy applications, handling version control of database structure changes with support for upgrades, downgrades, and auto-generation from model changes.
Install it if you use SQLAlchemy and need to version-control schema changes; skip it only if you manage migrations manually or use a different ORM entirely.
A Python client library for connecting to and querying Weaviate, a vector database that enables semantic search and AI-powered data retrieval.
A Python client library that connects to Databricks clusters and SQL warehouses using a Thrift-based protocol, conforming to the Python DB API 2.0 specification and supporting Arrow-based data exchange.
Install it if you need to query Databricks clusters or SQL warehouses from Python.
Psycopg 3 is a PostgreSQL database adapter for Python that enables applications to connect to, query, and manage PostgreSQL databases using Python code.
Install it if you need to connect Python to PostgreSQL.
See also django-elasticsearch-dsl-drf · elasticsearch-curator · elasticsearch-dsl · modelsearch · django-opensearch-dsl · elasticsearch8-dsl · luqum · typesense · elasticsearch · pySigma-backend-elasticsearch