Skip to content

Commit d207fd2

Browse files
committed
Formatting
1 parent a10d69f commit d207fd2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,24 @@ This add-on integrates Solr for Drupal 9+ into your [DDEV](https://ddev.com/) pr
4141
* Set "Solr host" to `solr`
4242
* Set "solr core" to `dev`
4343
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`.
44-
6. `ddev restart`
44+
6. Restart DDEV: `ddev restart`
4545

4646
## Installation on Drupal 7
4747

48-
### Ddev / Solr configuration
48+
### DDEV / Solr configuration
4949

5050
1. Install this add-on: `ddev add-on get ddev/ddev-drupal-solr`
5151
2. Set the version of Solr version 7: Edit the `.ddev/docker-compose.solr.yaml` file. Replace `image: solr:8` with `image: solr:7` on line 34.
5252
3. Add the schema needed for version 7: Defaults can be found in the Search API Solr in the `search_api_solr/solr-conf/7.x` directory . Copy these files into `.ddev/solr/conf`.
53-
4. Restart Ddev: `ddev restart`.
53+
4. Restart DDEV: `ddev restart`.
5454
5. Confirm Solr is working by visiting `http://<projectname>.ddev.site:8983/solr/`.
5555
6. If the Ddev drush version is too new for Drupal 7, you may need to symlink `drush` to the `drush8` provided with Ddev. You can do this by adding a `post-start` hook inside your `.ddev/config.yaml` file as follows
56-
```
57-
hooks:
58-
post-start:
59-
- exec: ln -s /usr/local/bin/drush8 /usr/local/bin/drush
60-
```
61-
7. Restart Ddev: `ddev restart`.
56+
```yaml
57+
hooks:
58+
post-start:
59+
- exec: ln -s /usr/local/bin/drush8 /usr/local/bin/drush
60+
```
61+
7. Restart DDEV: `ddev restart`.
6262

6363
### Drupal configuration
6464

@@ -105,13 +105,13 @@ If you get a message about Solr having outdated config files, you need to update
105105

106106
1. Click "Get config.zip" on the server page
107107
2. Unzip the files, and put the config files into `.ddev/solr/conf/`
108-
3. Restart Ddev: `ddev restart`
108+
3. Restart DDEV: `ddev restart`
109109

110110
### Drupal 7
111111

112112
1. Locate the example files in the `search_api_solr/solr-conf/7.x` directory .
113113
2. Copy these files into `.ddev/solr/conf`.
114-
4. Restart Ddev: `ddev restart`.
114+
4. Restart DDEV: `ddev restart`.
115115

116116
### Other frameworks
117117

@@ -204,7 +204,7 @@ If you would like to use more than one Solr core, add a `.ddev/docker-compose.s
204204

205205
## Caveats
206206

207-
* This recipe won't work with versions of Solr before `solr:8`, and Acquia's hosting [requires Solr 7](https://docs.acquia.com/acquia-cloud-platform/docs/features/acquia-search). You'll want to see the [contributed recipes](https://github.com/ddev/ddev-contrib) for older versions of Solr.
207+
* This recipe is designed for versions of Solr `solr:8` and beyond. Acquia's hosting [requires Solr 7](https://docs.acquia.com/acquia-cloud-platform/docs/features/acquia-search). You'll want to follow the Drupal 7 instructions above, or see the [contributed recipes](https://github.com/ddev/ddev-contrib) for older versions of Solr.
208208

209209
## Credits
210210

0 commit comments

Comments
 (0)