summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-02-23 15:20:31 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-02-23 17:06:22 +0100
commite442a63bb7659d95aec2d48bf954cd9d61163559 (patch)
treed8868929c74430e530f41ff8a359f451fd981729 /docs
parentd5601e8391470be952ba48948c5a976884fea871 (diff)
related: Add config option cardinalityThreshold
Fixes #10744
Diffstat (limited to 'docs')
-rw-r--r--docs/content/en/content-management/related.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/content/en/content-management/related.md b/docs/content/en/content-management/related.md
index 98af0a36f..c25b0ed61 100644
--- a/docs/content/en/content-management/related.md
+++ b/docs/content/en/content-management/related.md
@@ -160,6 +160,10 @@ applyFilter
weight
: An integer weight that indicates _how important_ this parameter is relative to the other parameters. It can be 0, which has the effect of turning this index off, or even negative. Test with different values to see what fits your content best.
+
+cardinalityThreshold (default 0)
+: {{< new-in "0.111.0" >}}. A percentage (0-100) used to remove common keywords from the index. As an example, setting this to 50 will remove all keywords that are used in more than 50% of the documents in the index.
+
pattern
: This is currently only relevant for dates. When listing related content, we may want to list content that is also close in time. Setting "2006" (default value for date indexes) as the pattern for a date index will add weight to pages published in the same year. For busier blogs, "200601" (year and month) may be a better default.