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
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion docs/update_and_migration/from_3.3/update_from_3.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -424,4 +424,4 @@

### 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.
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 427 in docs/update_and_migration/from_3.3/update_from_3.3.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/update_and_migration/from_3.3/update_from_3.3.md#L427

[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_3.3/update_from_3.3.md", "range": {"start": {"line": 427, "column": 121}}}, "severity": "WARNING"}
41 changes: 41 additions & 0 deletions 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,47 @@
values: []
```

## Update Solr configuration

Solr configuration changes with the addition of spellchecking feature.

Configure the `spellcheck` component in `solrconfig.xml`:

```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 the `/select` request handler:

Check warning on line 439 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#L439

[Ibexa.EOLWhitespace] Remove whitespace characters from the end of the line.
Raw output
{"message": "[Ibexa.EOLWhitespace] Remove whitespace characters from the end of the line.", "location": {"path": "docs/update_and_migration/from_4.5/update_from_4.5.md", "range": {"start": {"line": 439, "column": 66}}}, "severity": "WARNING"}

```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 merge `spellcheck` configuration by comparing new files with your existing setup.

Restart Solr for `solrconfig.xml` changes to take effect.

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
Loading