ConnectionManager
TYPO3 Site mode
You can configure all Solr connection properties along with your TYPO3 site in the site module.
The configuration in the UI is limited to the following settings to keep the setup as simple as possible:
Global:
- Scheme
- Host
- Port
- Path to cores
Languagelevel:
- Solr core name
If you have a more complex setup or need to configure username and password please configure Solr by editing the yaml file.
The fallback mechanism allows you to overwrite settings on the language level.
The fallback mechanism work like that:
Each setting has the following structure solr_{$setting}_{$scope}"`
. The scope can be read or write. Every setting can be overwritten for the scope write, if nothing is configured it will fallback to the read setting. Every setting can be defined on the language level, if it is not configured on the language level it fallsback to the global setting.
Example:
base: 'http://solr-ddev-site.ddev.site/'
baseVariants: { }
errorHandling: { }
languages:
-
title: English
enabled: true
base: /
typo3Language: default
locale: en_US.UTF-8
iso-639-1: en
navigationTitle: ''
hreflang: en-US
direction: ''
flag: global
solr_host_read: solr-host-1
solr_core_read: core_en
languageId: '0'
-
title: German
enabled: true
base: /de/
typo3Language: de
locale: de_DE.UTF-8
iso-639-1: de
navigationTitle: ''
hreflang: de-DE
direction: ''
flag: global
solr_host_read: solr-host-2
solr_core_read: core_de
languageId: '1'
rootPageId: 3
routes: { }
solr_enabled_read: true
solr_path_read: /
solr_port_read: 8983
solr_scheme_read: http
solr_use_write_connection: false
The example above shows that you are able to define the setting
solr_host_read
on the language level. Since this is a more advanced
configuration and the user interface should be kept simple, this can only be
configured in the yaml.