Wrapper around opensearch-py for Django models, providing a high-level interface for indexing and searching Django models in OpenSearch. Current version is 0.8.0. Release cadence is irregular, with 10 releases since 2021.
pip install django-opensearch-dslVerified import paths — ran on the pinned version, not inferred.
Define a Document class for a Django model, save it to create the index, and perform a search.
Update custom get_queryset/get_indexing_queryset methods to accept the optional alias parameter: def get_queryset(self, alias=None): ...
If you rely on default ordering, explicitly pass keep_order=False to restore previous behavior.
Change imports from opensearch_dsl to django_opensearch_dsl.
In settings.py: OPENSEARCH_DSL_SIGNAL_PROCESSOR = 'django_opensearch_dsl.signals.CelerySignalProcessor'