Drupal Tip: Use Drush To Index Search After Mass Upload

After using a mass upload tool such as Feeds or Migrate to populate your site with as much as thousands of nodes, you will need to re – index your site so that SEARCH can be used.

1

Normally pressing the ‘Re – Index’ button at the default search settings page above (..admin/config/search/settings) would suffice but if the nodes are in the thousands you will need to use Drush instead.

Logged in using ssh, use the drush command

drush search-index

And it will result in this:

2

It can take up to 4 seconds per 100 indexed nodes so this may take time. Checking admin/config/search/settings again afterwards will show 100% indexed nodes:

3

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.