Railsでsearchkickを使っているのですが10000件以上で検索するためにmax_result_windowを設定しようと以下のコードをmodelに追加しました。
searchkick settings: {index: {max_result_window: 12000}}
しかしながら,結局以下のようなエラーが出てしまっています.
error
1{ 2 "error": { 3 "failed_shards": [ 4 { 5 "index": "", 6 "node": "", 7 "reason": { 8 "reason": "Result window is too large, from + size must be less than or equal to: [10000] but was [11000]. 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 parameter.", 9 "type": "query_phase_execution_exception" 10 }, 11 "shard": 0 12 } 13 ], 14 "grouped": true, 15 "phase": "query_fetch", 16 "reason": "all shards failed", 17 "root_cause": [ 18 { 19 "reason": "Result window is too large, from + size must be less than or equal to: [10000] but was [11000]. 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 parameter.", 20 "type": "query_phase_execution_exception" 21 } 22 ], 23 "type": "search_phase_execution_exception" 24 }, 25 "status": 500 26}
よろしくお願い致します.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。