Backend and Infrastructure

Solr and Multiple Environments for Drupal 8, 9, and 10

When developing a Drupal site, it is best practice to maintain multiple environments: A production environment for your live site, a stage environment for “next version” development, and your local environment for debugging and creating new features. Solr adds further complexity as we should have a separate Solr server for each.

In this tutorial, we'll:

  • Describe why different Solr servers should be used for each environment
  • Explain why Config Split is not a solution for multiple environments
  • Describe how to use config overrides for each environment

By the end of this tutorial you should be able to override your Search API server configuration with environment-specific settings.