From 48f29774c3b93d18aeff3f42a78615af70932b27 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Fri, 23 May 2025 23:05:13 +0200 Subject: [PATCH] config.php: add search.max_length --- inc/config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/config.php b/inc/config.php index fd99dfe3..2f43f614 100644 --- a/inc/config.php +++ b/inc/config.php @@ -1860,6 +1860,10 @@ // Body search filters are discarded if they make the query heavier than this. $config['search']['max_weight'] = 80; + // Maximum length of the user sent search query. + // Characters beyond the limit are truncated and ignored. + $config['search']['max_length'] = 768; + // Uncomment to limit the search feature to the given boards by uri. //$config['search']['boards'] = array('a', 'b', 'c', 'd', 'e');