search-api-index

Index items for one or all enabled search indexes.

drush search-api-index

Aliases:

Arguments:

index_id : The machine name of an index

Options:

--limit : The number of items to index. Set to 0 to index all items. Defaults to 0 (index all).
--batch-size : The number of items to index per batch run. Set to 0 to index all items at once. Defaults to the "Cron batch size" setting of the index.

Examples:

Index all items for all enabled indexes.

drush search-api-index

Alias to index all items for all enabled indexes.

drush sapi-i

Index all items for the index with the ID node_index.

drush sapi-i node_index

Index a maximum number of 100 items for the index with the ID node_index.

drush sapi-i node_index 100

Index a maximum number of 100 items (10 items per batch run) for the index with the ID node_index.

drush sapi-i node_index 100 10