You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-10Lines changed: 13 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,18 +10,20 @@ This repository allows you to quickly install Apache Solr for Drupal 9+ into a [
10
10
1. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush:* drupal/search_api_solr`
11
11
1. Enable the `search_api_solr` module either using the web interface or `ddev drush en -y search_api_solr`
12
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`.
13
+
1. Create a server with the following settings
14
+
* Set "Server name" to anything you want. Maybe `ddev-solr-server`.
15
+
* Set "Backend" to `Solr`
16
+
* Configure Solr backend
17
+
* Set "Solr Connector" to `Standard`
18
+
* Set "Solr host" to `solr`
19
+
* Set "solr core" to `dev`
20
+
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`.
21
+
20
22
1.`ddev restart`
21
23
22
24
## Explanation
23
25
24
-
This is the classic Drupal `solr:8` image recipe used for a long time by Drupal users and compatible with `search_api_solr`.
26
+
This is the classic Drupal `solr:8` image recipe used for a long time by Drupal users and compatible with `search_api_solr`.
25
27
26
28
* It installs a [`.ddev/docker-compose.solr.yaml`](docker-compose.solr.yaml) using the solr:8 docker image.
27
29
* A standard Drupal 9+ Solr configuration is included in [.ddev/solr/conf](solr/conf).
@@ -36,17 +38,18 @@ This is the classic Drupal `solr:8` image recipe used for a long time by Drupal
36
38
## Alternate Core Name
37
39
38
40
If you want to use a core name other than the default "dev", add a `.ddev/docker-compose.solr-env.yaml` with these contents, using the core name you want to use:
41
+
39
42
```
40
43
services:
41
44
solr:
42
45
environment:
43
46
- SOLR_CORENAME=somecorename
44
47
```
48
+
45
49
1. Remove the #ddev-generated at the top of the file.
46
50
2. Change SOLR_CORE environment variable in the `environment:` section.
47
51
3. Change your Drupal configuration to use the new core.
48
52
49
53
## Caveats
50
-
* 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.
51
-
52
54
55
+
* 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 commit comments