Skip to content

Commit

Permalink
FEATURE: change default size for search recent posts
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
SamSaffron committed Sep 24, 2020
1 parent 911d479 commit 580383d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/site_settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 580383d

Please sign in to comment.