Typical Workflow
Complete workflow for re-indexing all content on a specific server:
# 1. Rebuild trackers for all indexes on the server
drush osrb --server=my_solr_server
# 2. Start parallel indexing
drush ost --server=my_solr_server --workers=10 --batch=500 --background
# 3. Monitor progress
drush oss
# 4. Watch detailed log (optional)
tail -f /tmp/opensolr_turbo.log
Step-by-Step Guide
Step 1: Check Current Status
Before starting, see what needs to be indexed:
drush oss
This shows you:
- Total items in each index
- How many are already indexed
- How many remain
Step 2: Rebuild Trackers (If Needed)
If the tracker is out of sync or you want to re-index everything from scratch:
drush osrb --server=my_solr_server
This marks all items as "needs indexing" by re-scanning all content.
Step 3: Start Indexing
For long jobs, use background mode:
drush ost --server=my_solr_server --workers=8 --batch=500 --background
💡 Choosing Workers and Batch Size
- Workers: Start with your CPU count, adjust based on load
- Batch: 500 is good for most sites; reduce if you have complex content
Step 4: Monitor Progress
Check progress periodically:
# Quick status check
drush oss
# Detailed live log
tail -f /tmp/opensolr_turbo.log
Step 5: Verify Completion
When done, verify everything is indexed:
drush oss
All indexes should show 100% with 0 remaining items.
Quick Re-index
For a quick interactive re-index (small sites or testing):
# Stay in foreground, see live progress
drush ost --workers=4 --batch=100
Single Index
To index just one specific index:
drush osrb --index=my_solr_index
drush ost --index=my_solr_index --workers=4 --batch=500