DEV: Add hidden site setting to control search page size (#21640)
This commit is contained in:
parent
f8ee839bfb
commit
96e3c5e102
|
@ -2288,6 +2288,9 @@ search:
|
||||||
default: 1.2
|
default: 1.2
|
||||||
hidden: true
|
hidden: true
|
||||||
validator: "CategorySearchPriorityWeightsValidator"
|
validator: "CategorySearchPriorityWeightsValidator"
|
||||||
|
search_page_size:
|
||||||
|
default: 50
|
||||||
|
hidden: true
|
||||||
|
|
||||||
uncategorized:
|
uncategorized:
|
||||||
version_checks:
|
version_checks:
|
||||||
|
|
|
@ -20,7 +20,7 @@ class Search
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.per_filter
|
def self.per_filter
|
||||||
50
|
SiteSetting.search_page_size
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.facets
|
def self.facets
|
||||||
|
|
Loading…
Reference in New Issue