@@ -195,11 +195,33 @@ ddev solr version
195195
196196Make sure to commit the ` .ddev/.env.solr ` file to version control.
197197
198+ ### Add custom Solr libraries via SOLR_MODULES env variable
199+
200+ Since version 9.8 Solr deprecates lib-directives: https://solr.apache.org/guide/solr/latest/upgrade-notes/major-changes-in-solr-9.html#solr-9-8
201+
202+ To enable custom libraries you can use ` SOLR_MODULES ` environment variable.
203+
204+ By default it is set to ` SOLR_MODULES: "extraction,langid,ltr,analysis-extras" ` to work with
205+ Drupal Search API Solr default (jump start) config.
206+
207+ You can unset by using:
208+
209+ ```
210+ ddev dotenv set .ddev/.env.solr --solr-modules=
211+ ```
212+
213+ or set to custom value:
214+
215+ ```
216+ ddev dotenv set .ddev/.env.solr --solr-modules=extraction,ltr
217+ ```
218+
198219All customization options (use with caution):
199220
200- | Variable | Flag | Default |
201- | -------- | ---- | ------- |
202- | ` SOLR_BASE_IMAGE ` | ` --solr-base-image ` | ` solr:9.6 ` |
221+ | Variable | Flag | Default |
222+ | -------------------| ---------------------| -----------|
223+ | ` SOLR_BASE_IMAGE ` | ` --solr-base-image ` | ` solr:9 ` |
224+ | ` SOLR_MODULES ` | ` --solr-modules ` | ` extraction,langid,ltr,analysis-extras ` |
203225
204226### Add third party Solr modules and libraries
205227
@@ -210,6 +232,9 @@ collection's `solrconfig.xml`:
210232<lib dir =" /opt/solr/modules/ddev/lib/" regex =" .*\.jar" />
211233```
212234
235+ Attention: This changed since Solr 9.8, read https://solr.apache.org/guide/solr/latest/upgrade-notes/major-changes-in-solr-9.html#solr-9-8
236+ for details.
237+
213238## Solarium PHP client
214239
215240[ Solarium] ( https://github.com/solariumphp/solarium ) is the leading Solr
0 commit comments