O'Reilly logo

Drupal 8 Development Beginner's Guide - Second Edition by Kurt Madel, Malabya Tewari, Rakesh James, Krishna Kanth, Edward Crompton, Samuel Keen, Tassos Koutlas, Neeraj Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – configuring Drupal to use Apache Solr

However you set up Apache Solr, you'll now want to configure Drupal to use your new Solr server as your search server in Drupal:

  1. Installing the Search API Solr module. First we need to install the search_api_solr module on our Drupal site. Download the module and extract it into the /modules folder of your Drupal site as usual. The module has some dependencies that are managed by composer, so navigate into the directory of your module and run:
    $ composer install
    

    At the time of writing, the development version of search_api_solr was required in order to fix some errors on the official alpha release displayed for download on the module page. To fetch this, it is best to use Git:

    $ git clone ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required