From b2fe916382fdb50a1b4bf5fe2587b7f705c824c9 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 25 Nov 2025 19:26:22 +0100 Subject: [PATCH 1/9] clustering_with_ddev.md: use ddev/ddev-solr --- .../clustering/clustering_with_ddev.md | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index db6a457e3e..38127180bf 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -35,10 +35,10 @@ A [search engine](search_engines.md) can be added to the cluster. The following sequence of commands: -1. Adds the Elasticsearch container. -2. Sets Elasticsearch as the search engine. -3. Restarts the DDEV cluster and clears application cache. -4. Injects the schema and reindexes the content. +1. Adds the Elasticsearch container +2. Sets Elasticsearch as the search engine +3. Restarts the DDEV cluster and clears application cache +4. Injects the schema and reindexes the content ```bash ddev add-on get ddev/ddev-elasticsearch @@ -68,22 +68,35 @@ See [Elasticsearch REST API reference](https://www.elastic.co/docs/reference/ela ### Solr -To simplify the installation of Solr, you can use the `ibexa/ddev-solr` add-on: +1. Adds the Solr container +3. Sets Solr as the search engine +2. Create the config set +4. Restarts the DDEV cluster, finish the config set, clears application cache +5. Reindexes the content ```bash -ddev add-on get ibexa/ddev-solr +ddev add-on get ddev/ddev-solr +ddev config --web-environment-add SEARCH_ENGINE=solr +ddev config --web-environment-add SOLR_DSN=http://solr:8983/solr +ddev config --web-environment-add SOLR_CORE=collection1 +ddev start +mkdir .ddev/solr/configsets/collection1 +ddev exec -s solr cp -R /opt/solr/server/solr/configsets/_default/conf/* /mnt/ddev_config/solr/configsets/collection1/ +cp -R vendor/ibexa/solr/src/lib/Resources/config/solr/* .ddev/solr/configsets/collection1/ ddev restart +ddev php bin/console cache:clear +ddev php bin/console ibexa:reindex ``` You can now check whether Solr works. -For example, the `ddev exec curl -s http://solr:8983/api/cores/` command: +For example, the `ddev exec curl -s http://solr:SolrRocks@solr:8983/api/cores/` command: - checks whether the `web` server can access the `solr` server - checks whether `collection1` exists and its status - displays `collection1`'s `numDocs` that shouldn't be zero if indexing worked correctly -You can access the Solr admin UI from the host by using port 8983 on the same `.ddev.site` subdomain as the front. Use `ddev describe` to get that URL. +You can access the Solr admin UI from the host by running `ddev solr-admin` command, and use the credentials username `solr`and password `SolrRocks` (as in the Solr V2 API call example above). ## Share cache and sessions From 60b108152f0a23a3f93f74b5f0a75eddf489eef6 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Tue, 25 Nov 2025 19:41:52 +0100 Subject: [PATCH 2/9] clustering_with_ddev.md: use ddev/ddev-solr --- .../clustering/clustering_with_ddev.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index 38127180bf..c0c3d8a53d 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -68,9 +68,11 @@ See [Elasticsearch REST API reference](https://www.elastic.co/docs/reference/ela ### Solr +The following sequence of commands: + 1. Adds the Solr container 3. Sets Solr as the search engine -2. Create the config set +2. Creates the config set 4. Restarts the DDEV cluster, finish the config set, clears application cache 5. Reindexes the content From 78bf17de42642665b4fb9f02f7b7d6d44951646d Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:02:55 +0100 Subject: [PATCH 3/9] clustering_with_ddev.md: How to access Solr admin --- .../clustering/clustering_with_ddev.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index c0c3d8a53d..2ff930f59e 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -98,7 +98,9 @@ For example, the `ddev exec curl -s http://solr:SolrRocks@solr:8983/api/cores/` - checks whether `collection1` exists and its status - displays `collection1`'s `numDocs` that shouldn't be zero if indexing worked correctly -You can access the Solr admin UI from the host by running `ddev solr-admin` command, and use the credentials username `solr`and password `SolrRocks` (as in the Solr V2 API call example above). +You can access the Solr admin UI from the host by running `ddev solr-admin` command +or by using port 8983 on the same `.ddev.site` subdomain than the front (use `ddev describe` to get that URL), +and use the credentials username `solr` and password `SolrRocks` (as in the Solr V2 API call example above). ## Share cache and sessions From 84dc6560347ce31a26f70f63db698124cfbf641b Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:20:39 +0100 Subject: [PATCH 4/9] clustering_with_ddev.md: use ddev/ddev-solr --- .../clustering/clustering_with_ddev.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index 2ff930f59e..b06b26cedd 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -71,9 +71,9 @@ See [Elasticsearch REST API reference](https://www.elastic.co/docs/reference/ela The following sequence of commands: 1. Adds the Solr container -3. Sets Solr as the search engine -2. Creates the config set -4. Restarts the DDEV cluster, finish the config set, clears application cache +2. Sets Solr as the search engine +3. Start the DDEV cluster to creates core config by combining default files and provided files +4. Restarts the DDEV cluster and clears application cache 5. Reindexes the content ```bash From cfc947422d39d1b51b9326f7c97008165e5e46bf Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Wed, 26 Nov 2025 09:36:14 +0100 Subject: [PATCH 5/9] clustering_with_ddev.md: use ddev/ddev-solr --- .../clustering/clustering_with_ddev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index b06b26cedd..8656756353 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -72,7 +72,7 @@ The following sequence of commands: 1. Adds the Solr container 2. Sets Solr as the search engine -3. Start the DDEV cluster to creates core config by combining default files and provided files +3. Start the DDEV cluster to creates core config by combining default files and those provided by Ibexa 4. Restarts the DDEV cluster and clears application cache 5. Reindexes the content From b07c8c2f57166c26d7149db2f3c1294c4c2aef89 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Wed, 26 Nov 2025 10:02:53 +0100 Subject: [PATCH 6/9] clustering_with_ddev.md: use ddev/ddev-solr --- .../clustering/clustering_with_ddev.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index 8656756353..f4c07d66c8 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -102,6 +102,8 @@ You can access the Solr admin UI from the host by running `ddev solr-admin` comm or by using port 8983 on the same `.ddev.site` subdomain than the front (use `ddev describe` to get that URL), and use the credentials username `solr` and password `SolrRocks` (as in the Solr V2 API call example above). +For more information on topics such as version of Solr, see [ddev/ddev-solr README](https://github.com/ddev/ddev-solr). + ## Share cache and sessions You can add a [persistence cache pool](persistence_cache.md#persistence-cache-configuration) and a [session handler](sessions.md#session-handlers) to the cluster. From b717af524b7284359fa307633a363c6b7a051c78 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Wed, 26 Nov 2025 11:08:59 +0100 Subject: [PATCH 7/9] clustering_with_ddev.md: Apply vale suggestions --- .../clustering/clustering_with_ddev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index f4c07d66c8..0e3d3e6bb6 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -72,7 +72,7 @@ The following sequence of commands: 1. Adds the Solr container 2. Sets Solr as the search engine -3. Start the DDEV cluster to creates core config by combining default files and those provided by Ibexa +3. Start the DDEV cluster to creates core config by combining default files and those provided by [[= product_name =]] 4. Restarts the DDEV cluster and clears application cache 5. Reindexes the content From 8a41053bd7cfb57eeed342bd412eb3d4b5852dbf Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:27:48 +0100 Subject: [PATCH 8/9] Update docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md --- .../clustering/clustering_with_ddev.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index 0e3d3e6bb6..29ed1df4cd 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -98,11 +98,14 @@ For example, the `ddev exec curl -s http://solr:SolrRocks@solr:8983/api/cores/` - checks whether `collection1` exists and its status - displays `collection1`'s `numDocs` that shouldn't be zero if indexing worked correctly -You can access the Solr admin UI from the host by running `ddev solr-admin` command -or by using port 8983 on the same `.ddev.site` subdomain than the front (use `ddev describe` to get that URL), -and use the credentials username `solr` and password `SolrRocks` (as in the Solr V2 API call example above). +You can access the Solr admin UI from the host by: -For more information on topics such as version of Solr, see [ddev/ddev-solr README](https://github.com/ddev/ddev-solr). +- running `ddev solr-admin` command +- accessing port 8983 on the same `.ddev.site` subdomain than the web server (or use `ddev describe` to get this URL). + +Use the credentials username `solr` and password `SolrRocks`. + +For more information on topics such as available versions of Solr, see [ddev/ddev-solr README](https://github.com/ddev/ddev-solr). ## Share cache and sessions From 969dce23de574348b0fa061835159b88f91c7320 Mon Sep 17 00:00:00 2001 From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:49:18 +0100 Subject: [PATCH 9/9] Update docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md --- .../clustering/clustering_with_ddev.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md index 29ed1df4cd..680c0b7ff8 100644 --- a/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md +++ b/docs/infrastructure_and_maintenance/clustering/clustering_with_ddev.md @@ -101,7 +101,7 @@ For example, the `ddev exec curl -s http://solr:SolrRocks@solr:8983/api/cores/` You can access the Solr admin UI from the host by: - running `ddev solr-admin` command -- accessing port 8983 on the same `.ddev.site` subdomain than the web server (or use `ddev describe` to get this URL). +- accessing port 8983 on the same `.ddev.site` subdomain than the web server (you can use `ddev describe` to get this URL) Use the credentials username `solr` and password `SolrRocks`.