lando / solr

The Official Solr Lando Plugin
https://docs.lando.dev/solr/
GNU General Public License v3.0
0 stars 7 forks source link

Solr config from Drupal module isn't being copied to Solr Container #10

Closed drubb closed 2 years ago

drubb commented 2 years ago

Using a Drupal codebase with the Search API Solr module, this was the configuration I've used for the Solr service for some time:

services:
  search:
      type: solr:8
      core: drupal9
      portforward: true
      config:
        dir: /app/drupal/modules/contrib/search_api_solr/jump-start/solr8/config-set

In the current Lando release (3.6.2), the Solr core (drupal9) will be created in /var/solr/data, but the folder is empty, no config inside. The config source (/app/drupal/modules/contrib/search_api_solr/jump-start/solr8/config-set) exists.

What am I missing?

drubb commented 2 years ago

My mistake. Obviously the config directory needs to be specified relative, not absolute, so it's

config:
     dir: drupal/modules/contrib/search_api_solr/jump-start/solr8/config-set

Closing this issue, as it's resolved.