From 96e3c5e102d539782964025f2ec67f594cbac969 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Thu, 18 May 2023 15:30:08 -0500 Subject: [PATCH] DEV: Add hidden site setting to control search page size (#21640) --- config/site_settings.yml | 3 +++ lib/search.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/site_settings.yml b/config/site_settings.yml index 4d3777c4a0c..8dabe6a8a0a 100644 --- a/config/site_settings.yml +++ b/config/site_settings.yml @@ -2288,6 +2288,9 @@ search: default: 1.2 hidden: true validator: "CategorySearchPriorityWeightsValidator" + search_page_size: + default: 50 + hidden: true uncategorized: version_checks: diff --git a/lib/search.rb b/lib/search.rb index b232ebdaf9d..03d9e7a5f3d 100644 --- a/lib/search.rb +++ b/lib/search.rb @@ -20,7 +20,7 @@ class Search end def self.per_filter - 50 + SiteSetting.search_page_size end def self.facets