drush search-api:indexfor drush 9x


Indexes items for one or all enabled search indexes.

drush search-api:index

  • Aliases


    search-api:index has 2 alias/es:


    drush sapi-i

    drush search-api-index

  • Arguments


    search-api:index accepts 1 argument/s:


    indexId : (optional) A search index ID, or NULL to index items for all enabled indexes.

  • Options


    search-api:index accepts 5 option/s:


    --limit

    --limit : limit

    --batch-size

    --batch-size : batch-size

    --notify

    --notify : notify

    --druplicon

    --druplicon : druplicon

    --xh-link

    --xh-link : xh-link

  • 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

  • Comments


    comments powered by Disqus