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
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,21 @@
2
2
3
3
## What is this?
4
4
5
-
This repository allows you to quickly install Apache Solr for Drupal 9 into a [Ddev](https://ddev.readthedocs.io) project using just `ddev get drud/ddev-drupal9-solr`.
5
+
This repository allows you to quickly install Apache Solr for Drupal 9 into a [Ddev](https://ddev.readthedocs.io) project using just `ddev get drud/ddev-drupal9-solr`. It follows the [Setting up Solr (single core) - the classic way](https://git.drupalcode.org/project/search_api_solr/-/blob/4.x/README.md#setting-up-solr-single-core-the-classic-way) recipe.
6
6
7
7
## Installation on Drupal 9
8
8
9
9
1.`ddev get drud/ddev-drupal9-solr && ddev restart`
10
10
1. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush:* drupal/search_api_solr`
11
-
1. Enable the Search API Solr Search Defaults module: `ddev drush en -y search_api_solr_defaults`. (If it can't be enabled due to the "article" content type not existing, you can just create a search_api_solr server manually.)
12
-
1. Edit the enabled search_api server named `default_solr_server` at `admin/config/search/search-api/server/default_solr_server/edit`
13
-
* set "Solr host" to `solr`
14
-
* set "Solr core" name to "dev"
15
-
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`
11
+
1. Enable the `search_api_solr` module either using the web interface or `ddev drush en -y search_api_solr`
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`.
16
20
1.`ddev restart`
17
21
18
22
## Explanation
@@ -31,3 +35,5 @@ This is the classic Drupal solr:8 recipe used for a long time by Drupal users an
31
35
32
36
## Caveats
33
37
* 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