From 580383dff342a9a12f2270a8224b91c12f0e6ca7 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Thu, 24 Sep 2020 17:04:55 +1000 Subject: [PATCH] FEATURE: change default size for search recent posts The site setting `search_recent_posts_size` controls the window of posts that we will search through before trying to search through the full index If this number is too low then the search quality can suffer a lot as recent posts may dominate search. If the number is too high then performance will suffer. This attempts to find a happy medium, 1 million posts will cover the majority of forums out there and should perform adequately. --- config/site_settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/site_settings.yml b/config/site_settings.yml index d1b4641365b..9e48178c2db 100644 --- a/config/site_settings.yml +++ b/config/site_settings.yml @@ -1845,7 +1845,7 @@ search: search_tokenize_chinese_japanese_korean: false search_prefer_recent_posts: false search_recent_posts_size: - default: 100000 + default: 1000000 max: 10000000 search_recent_regular_posts_offset_post_id: default: 0