Skip to content

Commit 620fdb9

Browse files
committed
IBX-8858: Update Solr config between 4.5 and 4.6 (#2486)
1 parent 7a2c282 commit 620fdb9

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

docs/update_and_migration/from_3.3/update_from_3.3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,4 @@ Run the following scripts:
424424

425425
### v3.3.40
426426

427-
A command to deal with duplicated database entries, as reported in [IBX-8562](https://issues.ibexa.co/browse/IBX-8562), will be available soon.
427+
A command to deal with duplicated database entries, as reported in [IBX-8562](https://issues.ibexa.co/browse/IBX-8562), will be available soon.

docs/update_and_migration/from_4.5/update_from_4.5.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,47 @@ The following migration example allows users with the `Editor` role to access th
413413
values: []
414414
```
415415

416+
## Update Solr configuration
417+
418+
Solr configuration changes with the addition of spellchecking feature.
419+
420+
Configure the `spellcheck` component in `solrconfig.xml`:
421+
422+
```xml
423+
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
424+
<lst name="spellchecker">
425+
<str name="name">default</str>
426+
<str name="field">meta_content__text_t</str>
427+
<str name="classname">solr.DirectSolrSpellChecker</str>
428+
<str name="distanceMeasure">internal</str>
429+
<float name="accuracy">0.5</float>
430+
<int name="maxEdits">2</int>
431+
<int name="minPrefix">1</int>
432+
<int name="maxInspections">5</int>
433+
<int name="minQueryLength">4</int>
434+
<float name="maxQueryFrequency">0.01</float>
435+
</lst>
436+
</searchComponent>
437+
```
438+
439+
Add this `spellcheck` component to the `/select` request handler:
440+
441+
```xml
442+
<requestHandler name="/select" class="solr.SearchHandler">
443+
<arr name="last-components">
444+
<str>spellcheck</str>
445+
</arr>
446+
<!-- […] -->
447+
</requestHandler>
448+
```
449+
450+
!!! note
451+
452+
You can [generate new Solr configuration files using `generate-solr-config.sh`](install_solr.md#continue-solr-configuration),
453+
and merge `spellcheck` configuration by comparing new files with your existing setup.
454+
455+
Restart Solr for `solrconfig.xml` changes to take effect.
456+
416457
## Update Elasticsearch schema
417458

418459
Elasticsearch schema's templates change, for example, with the addition of new features such as spellchecking.

0 commit comments

Comments
 (0)