Skip to content

Commit 07baf06

Browse files
committed
Update readme, make it easier to copy commands
1 parent 45dd517 commit 07baf06

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,18 @@ This repository allows you to quickly install Apache Solr for Drupal 9+ into a [
1414

1515
## Installation on Drupal 9+
1616

17-
1. `ddev add-on get ddev/ddev-drupal-solr && ddev restart`
18-
2. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush drupal/search_api_solr`
19-
3. Enable the `search_api_solr` module either using the web interface or `ddev drush en -y search_api_solr`
17+
1. ```bash
18+
ddev add-on get ddev/ddev-drupal-solr
19+
ddev restart
20+
```
21+
2. You may need to install the relevant Drupal requirements:
22+
```
23+
ddev composer require drush/drush drupal/search_api_solr
24+
```
25+
3. Enable the `search_api_solr` module either using the web interface or
26+
```
27+
ddev drush en -y search_api_solr
28+
```
2029
4. Create a Search API server at `admin/config/search/search-api` -> "Add server"
2130
5. Create a server with the following settings
2231
* Set "Server name" to anything you want. Maybe `ddev-solr-server`.
@@ -26,7 +35,6 @@ This repository allows you to quickly install Apache Solr for Drupal 9+ into a [
2635
* Set "Solr host" to `solr`
2736
* Set "solr core" to `dev`
2837
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`.
29-
3038
6. `ddev restart`
3139

3240
## Outdated Solr config files
@@ -43,9 +51,9 @@ See [the documentation in the `doc` folder](doc/README.md)
4351

4452
## Explanation
4553

46-
This is the classic Drupal `solr:8` image recipe used for a long time by Drupal users and compatible with `search_api_solr`.
54+
This originates from the classic Drupal `solr:8` image recipe used for a long time by Drupal users and compatible with `search_api_solr`.
4755

48-
* It installs a [`.ddev/docker-compose.solr.yaml`](docker-compose.solr.yaml) using the solr:8 docker image.
56+
* It installs a [`.ddev/docker-compose.solr.yaml`](docker-compose.solr.yaml) using the solr:9 docker image.
4957
* A standard Drupal 9+ Solr configuration is included in [.ddev/solr/conf](solr/conf).
5058
* A [.ddev/docker-entrypoint-initdb.d/solr-configupdate.sh](solr/docker-entrypoint-initdb.d/solr-configupdate.sh) is included and mounted into the Solr container so that you can change Solr config in `.ddev/solr/conf` with just a `ddev restart`.
5159

0 commit comments

Comments
 (0)