Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8858: Update Solr config between 4.5 and 4.6 #2486

Merged
merged 6 commits into from
Sep 17, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion docs/update_and_migration/from_4.5/update_from_4.5.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,45 @@
values: []
```

## Update Solr configuration

Solr configuration changes with the addition spellchecking feature.
adriendupuis marked this conversation as resolved.
Show resolved Hide resolved

Configure the `spellcheck` component:
adriendupuis marked this conversation as resolved.
Show resolved Hide resolved

```xml
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<lst name="spellchecker">
<str name="name">default</str>
<str name="field">meta_content__text_t</str>
<str name="classname">solr.DirectSolrSpellChecker</str>
<str name="distanceMeasure">internal</str>
<float name="accuracy">0.5</float>
<int name="maxEdits">2</int>
<int name="minPrefix">1</int>
<int name="maxInspections">5</int>
<int name="minQueryLength">4</int>
<float name="maxQueryFrequency">0.01</float>
</lst>
</searchComponent>
```

Add this `spellcheck` component to `/select`:
adriendupuis marked this conversation as resolved.
Show resolved Hide resolved

```xml
<requestHandler name="/select" class="solr.SearchHandler">
<arr name="last-components">
<str>spellcheck</str>
</arr>
<!-- […] -->
</requestHandler>
```

!!! note

You can [generate new Solr configuration files using `generate-solr-config.sh`](install_solr.md#continue-solr-configuration),
and compare with your current configuration to merge those `spellcheck` configurations.
adriendupuis marked this conversation as resolved.
Show resolved Hide resolved

adriendupuis marked this conversation as resolved.
Show resolved Hide resolved
## Update Elasticsearch schema

Elasticsearch schema's templates change, for example, with the addition of new features such as spellchecking.
Expand Down Expand Up @@ -520,4 +559,4 @@

## v4.6.10

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

Check warning on line 562 in docs/update_and_migration/from_4.5/update_from_4.5.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/update_and_migration/from_4.5/update_from_4.5.md#L562

[Ibexa.FutureTense] Use present tense instead of future.
Raw output
{"message": "[Ibexa.FutureTense] Use present tense instead of future.", "location": {"path": "docs/update_and_migration/from_4.5/update_from_4.5.md", "range": {"start": {"line": 562, "column": 121}}}, "severity": "WARNING"}
Loading