Skip to content

Commit

Permalink
Remove mention of the module search_api_solr_defaults module, fixes #7 (
Browse files Browse the repository at this point in the history
  • Loading branch information
cspitzlay authored Oct 14, 2022
1 parent 1e91f7b commit 1224e36
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@

## What is this?

This repository allows you to quickly install Apache Solr for Drupal 9 into a [Ddev](https://ddev.readthedocs.io) project using just `ddev get drud/ddev-drupal9-solr`.
This repository allows you to quickly install Apache Solr for Drupal 9 into a [Ddev](https://ddev.readthedocs.io) project using just `ddev get drud/ddev-drupal9-solr`. It follows the [Setting up Solr (single core) - the classic way](https://git.drupalcode.org/project/search_api_solr/-/blob/4.x/README.md#setting-up-solr-single-core-the-classic-way) recipe.

## Installation on Drupal 9

1. `ddev get drud/ddev-drupal9-solr && ddev restart`
1. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush:* drupal/search_api_solr`
1. Enable the Search API Solr Search Defaults module: `ddev drush en -y search_api_solr_defaults`. (If it can't be enabled due to the "article" content type not existing, you can just create a search_api_solr server manually.)
1. Edit the enabled search_api server named `default_solr_server` at `admin/config/search/search-api/server/default_solr_server/edit`
* set "Solr host" to `solr`
* set "Solr core" name to "dev"
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`
1. Enable the `search_api_solr` module either using the web interface or `ddev drush en -y search_api_solr`
1. Create a search_api server at `admin/config/search/search-api` -> "Add server"
1. Choose Solr as backend.
1. Choose "Standard" as the Solr connector type and configure it:
* Set "Server name" to anything you want. Maybe "ddev-solr-server".
* Set "Backend" to "Solr"
* Set "Solr host" to `solr`.
* Set "Solr core" name to "dev".
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`.
1. `ddev restart`

## Explanation
Expand All @@ -31,3 +35,5 @@ This is the classic Drupal solr:8 recipe used for a long time by Drupal users an

## Caveats
* This recipe won't work with versions of solr before solr:8, and Acquia and Pantheon.io hosting require versions from 3 to 7. You'll want to see the [contributed recipes](https://github.com/drud/ddev-contrib) for older versions of solr.


0 comments on commit 1224e36

Please sign in to comment.