If you have been using AlgoliaSearch for Django versions 1, 2, or 3,
upgrade to version 4 by running the following command:
pip install -U algoliasearch_django>=4.0
Version 4 includes these breaking changes:
-
Increased required minimal versions to Python 3.8 and Django 4
-
Upgrade the Python API client to version 4
If you used earlier versions of the Django integration and directly used the Python API client,
you need to upgrade your code.
If you didnโt interact with the Python API client directly in your code, you donโt have to do anything.
-
Remove deprecated method
clear_index
Replace any call to clear_index with clear_objects
from algoliasearch_django import clear_index
from algoliasearch_django import clear_objects
clear_index(model)
clear_objects(model)
Last modified on March 5, 2026