Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Solr plugin setup and usage

This project uses Solr for powering the on-site search. This is available via Pantheon through a site setting "add-on" and a drop-in WordPress plugin.

...

The Pantheon Solr plugin is already included as a project dependency in composer.json.

How to reindex content

There are two easy ways to manually rebuild the Solr index if required (by default, new and updated contenta is automatically indexed on post save).

Inside WP Admin

  • Click on the Solr Power admin menu item
  • Click on the Actions tab
  • Click the "Start Index" button to reindex searable post types

If you want to reconfigure the indexing settings, you can click on the Indexing Options tab in the SOlr Power settings.

Via Command Line

Run the following Terminus command to trigger a reindex: bash terminus wp <site>.<env> -- solr index

...