Searchkick::InvalidQueryError in Venues#index

Showing /home/deploy/apps/dresscodefinder/releases/20240224180909/app/views/venues/index.html.erb where line #15 raised:

[400] {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [15400]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"dresscodefinder_venues_20230310170629733","node":"lFOpi2LoS4yS994M07wT-g","reason":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [15400]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."}}],"caused_by":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [15400]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting.","caused_by":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [15400]. See the scroll api for a more efficient way to request large data sets. This limit can be set by changing the [index.max_result_window] index level setting."}}},"status":400}
Extracted source (around line #15):
13
14
15
16
17
18
              
<div class=" col-sm-12 col-md-9 col-lg-8 col-xl-7 content">
<h1 class="venue-heading">
<%= @title %>
</h1>
<div class="venue-listing desktop-section">
<ul class="list-unstyled">

Rails.root: /home/deploy/apps/dresscodefinder/releases/20240224180909

Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"page"=>"770", "city"=>"london"}

Response

Headers:

None