Skip to content

Commit 1c1bc37

Browse files
committed
Fix error on paginating really far into comments
1 parent 50148c9 commit 1c1bc37

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/models/concerns/comment_indexing.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ module CommentIndexing
33

44
included do
55
searchkick callbacks: :async,
6+
max_result_window: 10_000, # Refuse to load past this, as ES raises an error anyway
67
filterable: [:discussion_category, :script_id, :discussion_id, :discussion_starter_id, :locale_id, :poster_id]
78

89
scope :search_import, -> { includes(discussion: :script) }

0 commit comments

Comments
 (0)