Skip to content

Commit

Permalink
Add Solr config update tip for search_api_solr (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitressa authored Jun 12, 2023
1 parent 799e69a commit e90923b
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ This repository allows you to quickly install Apache Solr for Drupal 9+ into a [
## Installation on Drupal 9+

1. `ddev get ddev/ddev-drupal9-solr && ddev restart`
2. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush:* drupal/search_api_solr`
2. You may need to install the relevant Drupal requirements: `ddev composer require drush/drush drupal/search_api_solr`
3. Enable the `search_api_solr` module either using the web interface or `ddev drush en -y search_api_solr`
4. Create a search_api server at `admin/config/search/search-api` -> "Add server"
4. Create a Search API server at `admin/config/search/search-api` -> "Add server"
5. Create a server with the following settings
* Set "Server name" to anything you want. Maybe `ddev-solr-server`.
* Set "Backend" to `Solr`
Expand All @@ -21,6 +21,14 @@ This repository allows you to quickly install Apache Solr for Drupal 9+ into a [

6. `ddev restart`

## Outdated Solr config files

If you get a message about Solr having outdated config files, you need to update the included Solr config files.

1. Click "Get config.zip" on the server page
2. Unzip the files, and put the config files into `.ddev/solr/conf/`
3. Run `ddev restart`

### Other frameworks

See [the documentation in the `doc` folder](doc/README.md)
Expand Down Expand Up @@ -49,10 +57,8 @@ services:
environment:
- SOLR_CORENAME=somecorename
```
1. Remove the #ddev-generated at the top of the file.
2. Change SOLR_CORE environment variable in the `environment:` section.
3. Change your Drupal configuration to use the new core.
1. Change SOLR_CORENAME environment variable in the `environment:` section.
2. Change your Drupal configuration to use the new core.

## Caveats

Expand Down

0 comments on commit e90923b

Please sign in to comment.