drush search-api-indexfor drush 7x


Index items for one or all enabled search_api indexes.

drush search-api-index

search-api-index is a Drush command from the search_api project.

search_api
  • Aliases


    search-api-index has 1 alias/es:


    drush sapi-i

  • Arguments


    search-api-index accepts 3 argument/s:


    index_id : The numeric ID or machine name of an index. Set to 0 to index all indexes. Defaults to 0 (index all).

    limit : The number of items to index (index's cron batch size items per run). 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 index's cron batch size.

  • Examples


    Index items for all enabled indexes.

    drush searchapi-index

    Alias to index items for all enabled indexes.

    drush sapi-i

    Index items for the index with the ID 1.

    drush sapi-i 1

    Index items for the index with the machine name default_node_index.

    drush sapi-i default_node_index

    Index a maximum number of 100 items (index's cron batch size items per batch run) for the index with the ID 1.

    drush sapi-i 1 100

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

    drush sapi-i 1 100 10

    Index all items of all indexes with 100 items per batch run.

    drush sapi-i 0 0 100

  • Comments


    comments powered by Disqus