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
## What is the difference between this and ddev-solr
4
9
5
-
Please consider using [ddev/ddev-solr](https://github.com/ddev/ddev-solr), which runs Solr in the modern "cloud" mode. This offers several advantages. If you are using Drupal, the biggest advantage
6
-
is that you can update the Solr Configset from the UI or with a Drush command everytime you update search_api_solr.
10
+
Please consider using [ddev/ddev-solr](https://github.com/ddev/ddev-solr), which runs Solr in the modern "Cloud" mode. This offers several advantages. If you are using Drupal, the biggest advantage
11
+
is that you can update the Solr Configset from the UI or with a Drush command everytime you update `search_api_solr`.
12
+
13
+
The current addon runs in "classic standalone" mode. It is probably simpler at first to setup, but comes with the added maintainance steps for configsets. Most Solr hosting service providers run "Solr Cloud" as a backend.
7
14
8
-
The current addon runs in "classic standalone" mode. It is probably simpler at first to setup, but comes with the added maintainance steps for configsets. Most Solr hosting service providers run "Solr Cloud"
9
-
as a backend.
15
+
## Overview
10
16
11
-
## What is this?
17
+
[Apache Solr](https://solr.apache.org/) is the blazing-fast, open source, multi-modal search platform built on the full-text, vector, and geospatial search capabilities of Apache Lucene™.
12
18
13
-
This repository allows you to quickly install Apache Solr for Drupal 9+ into a [Ddev](https://ddev.readthedocs.io) project using just `ddev add-on get ddev/ddev-drupal-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.
19
+
This add-on integrates Solr for Drupal 9+ into your [DDEV](https://ddev.com/) project. 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.
14
20
15
21
## Installation on Drupal 9+
16
22
@@ -26,7 +32,6 @@ This repository allows you to quickly install Apache Solr for Drupal 9+ into a [
26
32
* Set "Solr host" to `solr`
27
33
* Set "solr core" to `dev`
28
34
* Under "Advanced server configuration" set the "solr.install.dir" to `/opt/solr`.
29
-
30
35
6.`ddev restart`
31
36
32
37
## Outdated Solr config files
@@ -59,13 +64,14 @@ This is the classic Drupal `solr:8` image recipe used for a long time by Drupal
59
64
60
65
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:
61
66
62
-
```yml
67
+
```yaml
63
68
services:
64
69
solr:
65
70
environment:
66
-
- SOLR_CORENAME=somecorename
71
+
- SOLR_CORENAME=somecorename
67
72
```
68
-
1. Change SOLR_CORENAME environment variable in the `environment:` section.
73
+
74
+
1. Change `SOLR_CORENAME` environment variable in the `environment:` section.
69
75
2. Change your Drupal configuration to use the new core.
70
76
71
77
You can delete the "dev" core from `http://<projectname>.ddev.site:8983/solr/#/~cores/dev` by clicking "Unload".
@@ -75,44 +81,53 @@ You can delete the "dev" core from `http://<projectname>.ddev.site:8983/solr/#/~
75
81
If you would like to use more than one Solr core, add a `.ddev/docker-compose.solr_extra.yaml` to override some of the default configuration.
76
82
77
83
1. Define a mount point for each core you require. Add new mount points for each core, for example:
78
-
```yml
79
-
services:
80
-
solr:
81
-
volumes:
82
-
- ./solr:/solr-conf
83
-
- ./core2:/core2-conf
84
-
- ./core3:/core3-conf
85
-
```
84
+
85
+
```yaml
86
+
services:
87
+
solr:
88
+
volumes:
89
+
- ./solr:/solr-conf
90
+
- ./core2:/core2-conf
91
+
- ./core3:/core3-conf
92
+
```
86
93
87
94
2. Create the directories for your new cores' config, and copy the desired solr config in to it, eg:
88
-
89
-
`cp -R .ddev/solr .ddev/core2`
90
-
91
-
`cp -R .ddev/solr .ddev/core3`
92
-
93
-
`cp -R path/to/core2-config/* .ddev/core2/conf/`
94
-
95
-
`cp -R path/to/core3-config/* .ddev/core3/conf/`
96
-
97
-
4. Set the 'entrypoint' value to use `precreate-core` instead of `solr-precreate` and add the additional cores, along with a command to start solr afterwards:
3. Set the `entrypoint` value to use `precreate-core` instead of `solr-precreate` and add the additional cores, along with a command to start solr afterwards:
5. Finally, `ddev restart` to pick up the changes and create the new cores.
115
-
124
+
116
125
## Caveats
117
126
118
-
* This recipe won't work with versions of Solr before `solr:8`, and Acquia's hosting [requires Solr 7](https://docs.acquia.com/acquia-search/). You'll want to see the [contributed recipes](https://github.com/ddev/ddev-contrib) for older versions of Solr.
127
+
* 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.
128
+
129
+
## Credits
130
+
131
+
**Contributed by [@rfay](https://github.com/rfay)**
132
+
133
+
**Maintained by [@mkalkbrenner](https://github.com/mkalkbrenner), [@bserem](https://github.com/bserem), and the [DDEV team](https://ddev.com/support-ddev/)**
0 commit comments