
ddev-typo3-solr
What is ddev-typo3-solr?
ddev-typo3-solr provides Solr (Cloud) using a single Solr node, which is sufficient
for local development requirements.
Getting started
-
Install the addon
<p>Installation is very simple.</p>
<p>For DDEV v1.23.5 or above run</p>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ddev add-on get carsten-walther/ddev-typo3-solr </code></pre></div> </div>
<p>For earlier versions of DDEV run</p>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ddev get carsten-walther/ddev-typo3-solr </code></pre></div> </div>
<p>This will install the php package <code class="language-plaintext highlighter-rouge">apache-solr-for-typo3/solr</code>, create the <code class="language-plaintext highlighter-rouge">.ddev/solr</code> project folder and coping all the available cores from the php package to the solr project folder.</p>
</li>
<p>Restart DDEV to start the addon.</p>
<div class="language-shell highlighter-rouge"><div class="highlight"><pre class="highlight"><code>ddev restart </code></pre></div> </div>
</ol>
Once up and running, access Solr’s UI within your browser by opening
http://<projectname>.ddev.site:8983
. For example, if the project is named
“myproject” the hostname will be http://myproject.ddev.site:8983
.
To access the Solr container from DDEV’s web container, use http://solr:8983
.
Using cores
Set your desired language core to the language in your sites/XXX/config.yaml.
base: 'https://%env(DDEV_SITENAME)%.%env(DDEV_TLD)%/'
...
languages:
-
title: English
enabled: true
languageId: 0
base: /
locale: en_US.UTF-8
navigationTitle: English
flag: us
hreflang: 'en-US'
websiteTitle: 'TYPO3 Website'
solr_core_read: core_en
-
title: Deutsch
enabled: true
languageId: 1
base: /
locale: de_DE.UTF-8
navigationTitle: Deutsch
flag: de
hreflang: 'de-DE'
websiteTitle: 'TYPO3 Website'
solr_core_read: core_de
-
...
rootPageId: 1
...
solr_enabled_read: true
solr_host_read: '%env(DDEV_SITENAME)%.%env(DDEV_TLD)%'
solr_path_read: /
solr_port_read: '8983'
solr_scheme_read: http
solr_use_write_connection: false
...
websiteTitle: 'TYPO3 Website'
You are able to use the DDEV constants in yout local environment. Keep in mind to replace them in production to the coorect one.
Maintainer
Contributers