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
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,45 +41,45 @@ This add-on integrates Solr for Drupal 9+ into your [DDEV](https://ddev.com/) pr
41
41
* Set "Solr host" to `solr`
42
42
* Set "solr core" to `dev`
43
43
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`.
44
-
6.`ddev restart`
44
+
6.Restart DDEV: `ddev restart`
45
45
46
46
## Installation on Drupal 7
47
47
48
-
### Ddev / Solr configuration
48
+
### DDEV / Solr configuration
49
49
50
50
1. Install this add-on: `ddev add-on get ddev/ddev-drupal-solr`
51
51
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.
52
52
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`.
54
54
5. Confirm Solr is working by visiting `http://<projectname>.ddev.site:8983/solr/`.
55
55
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
1. You may need to install the relevant Drupal modules: `ddev drush dl search_api_solr`.
66
66
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:
69
69
* Set "Server name" to anything you want. Maybe `ddev-solr-server`.
70
70
* Set "Protocol" to `http`
71
71
* Set "Solr host" to `solr`
72
72
* Set "Solr port" to `8983`
73
73
* Set "path" to `/solr/dev`.
74
74
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:
77
77
* Set "Server name" to anything you want. Maybe `ddev-solr-index-content`.
78
78
* Set "item type" to `content`
79
79
* Set the server to `ddev-solr-server` (or whaver the name is)
80
80
* 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:
83
83
* Set "View name" to anything you want. Maybe `Solr Search`.
84
84
* Set "Show" to `ddev-solr-index-content` (or whatever the name is)
85
85
* 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
105
105
106
106
1. Click "Get config.zip" on the server page
107
107
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`
109
109
110
110
### Drupal 7
111
111
112
112
1. Locate the example files in the `search_api_solr/solr-conf/7.x` directory .
113
113
2. Copy these files into `.ddev/solr/conf`.
114
-
4. Restart Ddev: `ddev restart`.
114
+
3. Restart DDEV: `ddev restart`.
115
115
116
116
### Other frameworks
117
117
@@ -204,7 +204,7 @@ If you would like to use more than one Solr core, add a `.ddev/docker-compose.s
204
204
205
205
## Caveats
206
206
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.
0 commit comments