Skip to content

Commit 002be7f

Browse files
committed
Formatting
1 parent a10d69f commit 002be7f

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -41,45 +41,45 @@ 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

6565
1. You may need to install the relevant Drupal modules: `ddev drush dl search_api_solr`.
6666
2. Enable the `search_api_solr` module either using the web interface or `ddev drush en -y search_api_solr`
67-
4. Create a Search API server at `admin/config/search/search-api` -> "Add server"
68-
5. Configure the server with the following settings:
67+
3. Create a Search API server at `admin/config/search/search-api` -> "Add server"
68+
4. Configure the server with the following settings:
6969
* Set "Server name" to anything you want. Maybe `ddev-solr-server`.
7070
* Set "Protocol" to `http`
7171
* Set "Solr host" to `solr`
7272
* Set "Solr port" to `8983`
7373
* Set "path" to `/solr/dev`.
7474
The "Solr server URI" should be `http://solr:8983/solr/dev` when done.
75-
6. Create a Search API index at `admin/config/search/search-api` -> "Add index"
76-
7. Configure the index as needed, but this is common:
75+
5. Create a Search API index at `admin/config/search/search-api` -> "Add index"
76+
6. Configure the index as needed, but this is common:
7777
* Set "Server name" to anything you want. Maybe `ddev-solr-index-content`.
7878
* Set "item type" to `content`
7979
* Set the server to `ddev-solr-server` (or whaver the name is)
8080
* Index the site.
81-
8. Build a new view of indexed content `ddev-solr-index-content` (or whatever the name is)
82-
7. Configure the view as needed, but this is common:
81+
7. Build a new view of indexed content `ddev-solr-index-content` (or whatever the name is)
82+
8. Configure the view as needed, but this is common:
8383
* Set "View name" to anything you want. Maybe `Solr Search`.
8484
* Set "Show" to `ddev-solr-index-content` (or whatever the name is)
8585
* Tick the box for "Create a page"
@@ -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+
3. 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)