Skip to content

Commit 1224e36

Browse files
authored
Remove mention of the module search_api_solr_defaults module, fixes #7 (#8)
1 parent 1e91f7b commit 1224e36

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22

33
## What is this?
44

5-
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`.
5+
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.
66

77
## Installation on Drupal 9
88

99
1. `ddev get drud/ddev-drupal9-solr && ddev restart`
1010
1. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush:* drupal/search_api_solr`
11-
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.)
12-
1. Edit the enabled search_api server named `default_solr_server` at `admin/config/search/search-api/server/default_solr_server/edit`
13-
* set "Solr host" to `solr`
14-
* set "Solr core" name to "dev"
15-
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`
11+
1. Enable the `search_api_solr` module either using the web interface or `ddev drush en -y search_api_solr`
12+
1. Create a search_api server at `admin/config/search/search-api` -> "Add server"
13+
1. Choose Solr as backend.
14+
1. Choose "Standard" as the Solr connector type and configure it:
15+
* Set "Server name" to anything you want. Maybe "ddev-solr-server".
16+
* Set "Backend" to "Solr"
17+
* Set "Solr host" to `solr`.
18+
* Set "Solr core" name to "dev".
19+
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`.
1620
1. `ddev restart`
1721

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

3236
## Caveats
3337
* 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.
38+
39+

0 commit comments

Comments
 (0)