Skip to content

Commit 867c623

Browse files
committed
fix(server-configuration): Add elasticIndex.indexSettings documentation
1 parent a14e2c9 commit 867c623

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

content/customising/server-configuration/_index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,33 @@ elasticIndex: {
863863
// The indexes are created with the following pattern: `${indexNamePrefix}-${index.handle}-index`
864864
indexNamePrefix: 'your-company-local',
865865

866+
// {{< added-in "release-2024-05" >}}
867+
// By default content is indexed using a german analyzer and language specific fields are not enabled.
868+
// Please configure the indexSettings for improved search accuracy and exact word matching.
869+
indexSettings: {
870+
// Enable language agnostic indexing and exact phrase matching using quoted search terms.
871+
// Once enabled, the document language is inferred
872+
// - by either a {{< a title="li-language" ref="/reference/document/metadata/plugins/li-language.md" >}} metadata property on a document
873+
// - or as fallback using the {{< a title="settings.languages.defaultLanguage" ref="/reference/project-config/settings.md#defaultLanguage" >}} ProjectConfig property
874+
useLanguageSpecificFields: true,
875+
876+
// Configure German compound word decomposition for better search results.
877+
// Breaks up compound words using a dictionary and hyphenation patterns.
878+
// When changing this config, the elasticsearch index needs to be recreated completely.
879+
// Note: `useLanguageSpecificFields` must also be enabled when `germanDecompounder` is configured.
880+
//
881+
// Attention:
882+
// The config files need to be deployed in the config directory
883+
// of the Elasticsearch Instance, not within the Livingdocs server directory.
884+
germanDecompounder: {
885+
enabled: true,
886+
// Path to the German decompounder dictionary
887+
dictionary: 'decompounder/dictionary-de.txt',
888+
// Path to the German hyphenation patterns file
889+
hyphenation: 'decompounder/de_DR.xml'
890+
}
891+
},
892+
866893
// The concurrency defines how many requests the livingdocs-server is doing
867894
// in parallel on every single process
868895
concurrency: 2,

content/reference/project-config/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ settings: {
2424
{label: 'German', locale: 'de'},
2525
{label: 'English', locale: 'en'}
2626
],
27-
defaultLanguage: {
27+
defaultLanguage: {{{< anchor "defaultLanguage" >}}
2828
label: 'German',
2929
locale: 'de'
3030
},
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<span
2+
class="anchor-offset"
3+
id="{{ .Get 0 }}"
4+
></span>
5+
{{- "" -}}

0 commit comments

Comments
 (0)