From 058284ec9e49d5c8ca56473c4f1eaf10eb86d577 Mon Sep 17 00:00:00 2001
From: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
Date: Tue, 17 Sep 2024 11:02:53 +0200
Subject: [PATCH] IBX-8858: Update Solr config between 4.5 and 4.6 (#2486)
---
.../from_3.3/update_from_3.3.md | 2 +-
.../from_4.5/update_from_4.5.md | 41 +++++++++++++++++++
2 files changed, 42 insertions(+), 1 deletion(-)
diff --git a/docs/update_and_migration/from_3.3/update_from_3.3.md b/docs/update_and_migration/from_3.3/update_from_3.3.md
index c8ea1220ce..faf5ffb7a4 100644
--- a/docs/update_and_migration/from_3.3/update_from_3.3.md
+++ b/docs/update_and_migration/from_3.3/update_from_3.3.md
@@ -424,4 +424,4 @@ Run the following scripts:
### v3.3.40
-A command to deal with duplicated database entries, as reported in [IBX-8562](https://issues.ibexa.co/browse/IBX-8562), will be available soon.
\ No newline at end of file
+A command to deal with duplicated database entries, as reported in [IBX-8562](https://issues.ibexa.co/browse/IBX-8562), will be available soon.
diff --git a/docs/update_and_migration/from_4.5/update_from_4.5.md b/docs/update_and_migration/from_4.5/update_from_4.5.md
index 3d7fd4eefc..4d18ba8642 100644
--- a/docs/update_and_migration/from_4.5/update_from_4.5.md
+++ b/docs/update_and_migration/from_4.5/update_from_4.5.md
@@ -413,6 +413,47 @@ The following migration example allows users with the `Editor` role to access th
values: []
```
+## Update Solr configuration
+
+Solr configuration changes with the addition of spellchecking feature.
+
+Configure the `spellcheck` component in `solrconfig.xml`:
+
+```xml
+
+
+ default
+ meta_content__text_t
+ solr.DirectSolrSpellChecker
+ internal
+ 0.5
+ 2
+ 1
+ 5
+ 4
+ 0.01
+
+
+```
+
+Add this `spellcheck` component to the `/select` request handler:
+
+```xml
+
+
+ spellcheck
+
+
+
+```
+
+!!! note
+
+ You can [generate new Solr configuration files using `generate-solr-config.sh`](install_solr.md#continue-solr-configuration),
+ and merge `spellcheck` configuration by comparing new files with your existing setup.
+
+Restart Solr for `solrconfig.xml` changes to take effect.
+
## Update Elasticsearch schema
Elasticsearch schema's templates change, for example, with the addition of new features such as spellchecking.