OpenSolr Turbo Indexer

True Parallel Solr Indexing for Drupal 9 / 10 / 11

Commands

opensolr:turbo ost

Start the turbo indexer with parallel workers. This is the main command for fast indexing.

Option Default Description
--server auto Search API server ID (auto-detects first Solr server)
--index all Specific index ID, or all indexes on the server
--workers 3 Number of parallel workers per index
--batch 100 Items per batch per worker
--background false Run as background daemon (survives SSH disconnect)

Examples

# Basic usage - index all with 3 workers
drush ost

# Fast mode - 4 workers, 150 items per batch
drush ost --workers=4 --batch=150

# Index specific index only
drush ost --index=my_solr_index --workers=4

# Run in background (for long-running jobs)
drush ost --workers=4 --batch=100 --background
opensolr:stats oss

Display indexing statistics and status of any running background process.

Option Default Description
--server auto Search API server ID
--index all Specific index ID
# Check status of all indexes
drush oss

# Check specific index
drush oss --index=my_solr_index
opensolr:stop osstop

Stop all running workers and background process. Use this to halt indexing.

# Stop everything
drush osstop
opensolr:rebuild osrb

Rebuild trackers for all indexes on a server. This re-scans all content and marks items for indexing.

Option Default Description
--server auto Search API server ID (auto-detects first Solr server)
--index all Specific index ID, or all indexes on the server

Examples

# Rebuild all indexes on a specific server
drush osrb --server=my_solr_server

# Rebuild a specific index only
drush osrb --index=my_solr_index

# Rebuild all indexes on default server
drush osrb