aboutsummaryrefslogtreecommitdiffstats
path: root/conf
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-28 11:05:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-09-28 11:05:12 +0100
commita0f7afdc2c97c742a92fd77bd3927b0c8fa422c7 (patch)
tree3f01578b4739b51881568c382331d4982a06a90f /conf
parentbe2dc6559fe86c9e8c2071b4f5720df6d6bb9a55 (diff)
downloadrspamd-a0f7afdc2c97c742a92fd77bd3927b0c8fa422c7.tar.gz
rspamd-a0f7afdc2c97c742a92fd77bd3927b0c8fa422c7.zip
[Fix] Fuzzy_check: Disable shingles for short texts (really)
Diffstat (limited to 'conf')
-rw-r--r--conf/modules.d/fuzzy_check.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/conf/modules.d/fuzzy_check.conf b/conf/modules.d/fuzzy_check.conf
index 5f02d864b..73e280f79 100644
--- a/conf/modules.d/fuzzy_check.conf
+++ b/conf/modules.d/fuzzy_check.conf
@@ -25,7 +25,8 @@ fuzzy_check {
max_score = 20.0;
read_only = yes;
skip_unknown = yes;
- short_text_direct_hash = true;
+ short_text_direct_hash = true; # If less than min_length then use direct hash
+ min_length = 64; # Minimum words count to consider shingles
fuzzy_map = {
FUZZY_DENIED {
max_score = 20.0;