Drupal 8 site with Docker + Solr search (docker4drupal by wodby)

This tutorial applies to docker4drupal by wodby.

PART 1: Install and configure Drupal 8 Search API Solr module

  1. Install Search API Solr module.
  2. After installing the module, configure Solr server.
    1. Go to Home > Administration > Configuration > Search and metadata > Search API
    2. Create a new server or edit an existing one and update the fields under CONFIGURE SOLR BACKEND field group
      • HTTP protocol: http
      • Solr host: solr
      • Solr port: 8983
      • Solr path: [empty]
      • Solr core: [NAME OF YOUR CORE THAT WE WILL USE ON PART 2]

 

PART 2: Creating Solr core

  1. SSH to a runnig Solr container:
    make shell solr

    or

    docker-compose exec solr sh
  2. Create Solr core
    make create core=[core name that we want to use on PART 1] -f /usr/local/bin/actions.mk

     

Add new comment

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.