Skip to main content
Use these manage.py commands to manage your Algolia indices.

Reindex models

To reindex all registered models, run:
The command writes records to a temporary index. The existing index stays searchable until the temporary index replaces it. To reindex specific models, pass their class names to --model:
The default number of records sent per batch is 1,000 records. To change it, pass --batchsize:

Apply index settings

To apply or reapply the index settings, run:

Clear an index

Clearing an index removes its records but keeps its settings, synonyms, and rules. To remove all records from an index, run:
To clear specific models, pass their class names to --model:
Last modified on November 27, 2026