Endpoint
Response
Current status of the reindex operation:
in_progress: Reindex is currently runningcompleted: Reindex finished successfullyfailed: Reindex encountered an error
Total number of records to reindex across all collections
Number of records successfully processed so far
The collection currently being reindexed (e.g., “transactions”, “balances”)
Array of collection names that have been fully reindexed
Timestamp when the reindex operation started (ISO 8601 format)
Timestamp when the reindex operation completed (ISO 8601 format). Null if still in progress
Error message if the reindex failed
Example Request
Example Response (In Progress)
Example Response (Completed)
Example Response (Failed)
Example Response (No Reindex Started)
Polling Example
Progress Calculation
Calculate the completion percentage:Understanding the Response
Collections Completed
The reindex processes collections in this order:- ledgers
- identities
- balances
- transactions
- reconciliations
collections_completed array shows which collections have been fully reindexed.
Processed Records
- Includes all records successfully written to Typesense
- Updates incrementally as batches complete
- May not increase linearly (some collections are larger than others)
Current Collection
Shows which collection is actively being reindexed. This helps identify:- Where the process is in the overall workflow
- Which collection may be causing slowdowns
- Progress within large collections
Error Responses
Error message when no reindex has been started
Common Errors
- 404 Not Found: No reindex operation has been started yet
Monitoring Best Practices
- Poll regularly: Check every 5-10 seconds for large reindex operations
- Set timeouts: Implement reasonable timeout limits (e.g., 12 hours)
- Log progress: Track progress over time to estimate completion
- Alert on failures: Set up notifications for failed reindex operations
- Display to users: Show progress bars or status updates in admin interfaces
Next Steps
After reindex completes:- Verify results: Run test searches to ensure data is properly indexed
- Check counts: Compare record counts between database and search index
- Test performance: Verify search performance meets expectations
- Monitor errors: Check application logs for any search-related errors