Search API Fast
This module provides Drush commands to speed up Search API indexing by using multiple CPU cores. It leverages a multi-process approach to handle queues simultaneously, significantly improving indexing speed for large sites. This functionality requires Drush and a Unix/Linux environment.
This module provides Drush commands to rapidly index with Search API, using multiple CPU cores. It can be quite useful when you have more than 10,000 nodes in your website.
It uses a multi-process approach by spawning parallel Drush workers that handle queues simultaneously, dramatically increasing indexing speed compared to the standard Search API indexing process.
It relies on Drush and a Unix/Linux-based system.
Configuration
Controlling search_api_fast settings (optional):
Drupal 10/11 (settings.php or admin/config/search/search-api-fast)
$config['search_api_fast.performance']['index_workers'] = 8;
$config['search_api_fast.performance']['worker_batch_size'] = 100;
$config['search_api_fast.performance']['max_batches_worker_respawn'] = 4;
$config['search_api_fast.performance']['drush'] = '/opt/mycooldrush/drush';
Configuration explanation:
- index_workers: Number of simultaneous workers (should not exceed available CPU cores)
- worker_batch_size: Batch size (items to index per batch)
- max_batches_worker_respawn: Number of batches before worker respawns (affects memory management)
- drush: Path to drush script (optional)
Usage
Run this from the webroot to start indexing:
drush sapi-fast [index-name]
You can monitor workers using 'top' or 'ps -ef | grep drush' to see all workers spawn.
To reindex (mark all items for reindexing first):
drush sapi-fast [index-name] reindex
To clear the index and then reindex:
drush sapi-fast [index-name] clear
See the README.md for detailed documentation and advanced usage options.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 3.0.0-alpha1 | Pre-release | 11 | This is an alpha release. It is a complete rewrite of the module with several improvements. | Jun 2, 2026 | |
| 3.0.x-dev | Dev | 11 | May 29, 2026 |