forked from e621ng/e621ng
Fix result window on search
The default result window is 10k in ES, which is below our max result count of 320 posts over 750 pages. Added 10k to the cap just in case something comes up and we need more results. I have been told that this doesn't cause problems in production on Derpi, but we'll see. This can be lowered at runtime, so it won't be a big deal if we have to roll it back down again.
This commit is contained in:
parent
f85de16f96
commit
afbe5bb7e9
@ -2,7 +2,7 @@
|
||||
|
||||
module PostIndex
|
||||
def self.included(base)
|
||||
base.settings index: { number_of_shards: 5, number_of_replicas: 1 } do
|
||||
base.settings index: { number_of_shards: 5, number_of_replicas: 1, max_result_window: 250_000 } do
|
||||
mappings dynamic: false do
|
||||
indexes :created_at, type: 'date'
|
||||
indexes :updated_at, type: 'date'
|
||||
|
Loading…
Reference in New Issue
Block a user