Apply suggestions from code review
This commit is contained in:
parent
af45c25e59
commit
06de5d0daf
|
@ -146,18 +146,24 @@ docker compose exec mailserver doveadm fts rescan -A
|
|||
|
||||
Usually within 15 minutes or so, you should be able to search your mail using the Dovecot FTS feature! :tada:
|
||||
|
||||
### Notes
|
||||
### Compatibility
|
||||
|
||||
1. As of writing of this guide, SOLR 9.8 is the current release. This release introduces a notable [change][solr-9.8-change]: it no longer automatically loads additional jars via <lib> directives. This behaviour is now deprecated and will be completely removed from SOLR 10 and onwards. The current dovecot scheme however does need this, so you need to add an extra environment variable to your `compose.yaml` if you want to use SOLR 9.8.x:
|
||||
Since Solr 9.8.0 was released (Jan 2025), a breaking change [deprecates support for `<lib>` directives][solr::9.8::lib-directive] which is presently used by the Dovecot supplied Solr config (`solr-config-9.xml`) to automatically load additional jars required.
|
||||
|
||||
To enable support for `<lib>` directives, add the following ENV to your `solr` container:
|
||||
|
||||
```yaml
|
||||
...
|
||||
services:
|
||||
solr:
|
||||
environment:
|
||||
...
|
||||
- SOLR_OPTS: "-Dsolr.config.lib.enabled=true"
|
||||
SOLR_CONFIG_LIB_ENABLED: true
|
||||
```
|
||||
|
||||
2. If you use [podman][podman] the composer build 'trick' only works with more recent versions of podman-compose, more recent than the version that currently ships with [EPEL][fedora-epel] for example. You should really be using [Quadlets][podman-quadlets] though if you use podman, which is a topic of its own and doesn't fit in this tutorial.
|
||||
!!! warning "Solr 10"
|
||||
|
||||
From the Solr 10 release onwards, this opt-in ENV will no longer be available.
|
||||
|
||||
If Dovecot has not updated their example Solr config ([upstream PR][dovecot::pr::solr-config-lib]), you will need to manually modify the Solr XML config.
|
||||
|
||||
[docs::user-patches]: ../../config/advanced/override-defaults/user-patches.md
|
||||
[docs::dovecot::full-text-search]: ../../config/advanced/full-text-search.md
|
||||
|
@ -168,8 +174,5 @@ docker compose exec mailserver doveadm fts rescan -A
|
|||
[github-solr]: https://github.com/apache/solr
|
||||
[github-dovecot::core-docs]: https://github.com/dovecot/core/tree/main/doc
|
||||
|
||||
[solr-9.8-change]: https://issues.apache.org/jira/browse/SOLR-16781
|
||||
|
||||
[podman]: https://podman.io
|
||||
[fedora-epel]: https://docs.fedoraproject.org/en-US/epel/
|
||||
[podman-quadlets]: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html
|
||||
[solr::9.8::lib-directive]: https://issues.apache.org/jira/browse/SOLR-16781
|
||||
[dovecot::pr::solr-config-lib]: https://github.com/dovecot/core/pull/238
|
||||
|
|
Loading…
Reference in New Issue