Elasticsearch Error: #892 {"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 [17490]. 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":"dfs","grouped":true,"failed_shards":[{"shard":0,"index":"gompels-page_v10","node":"PRMnTCMtQ5qz1dgr6KIpEA","reason":{"type":"illegal_argument_exception","reason":"Result window is too large, from + size must be less than or equal to: [10000] but was [17490]. 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 [17490]. 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 [17490]. 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}
{ "_source": [ "type", "product_id", "product_name", "product_tags", "product_name_singular", "page_name", "sku", "net_price", "preview_image", "number_of_products", "variant", "route", "scores.clearance_offer", "scores.top_seller", "visibility", "variants.variant_name" ], "from": 17475, "size": 15, "sort": { "_score": { "order": "desc" }, "product_name.keyword": { "order": "asc", "unmapped_type": "keyword" } }, "query": { "function_score": { "query": { "bool": { "must": [ { "match": { "type": "product" } } ], "must_not": [ { "match": { "product_id": "0" } }, { "match": { "visibility": "invisible" } } ], "should": null, "filter": [ { "match": { "category.keyword": "Early Years" } } ] } }, "boost_mode": "sum", "script_score": { "script": "(doc['scores.top_seller'].value * 0.0075) + (doc['scores.brand'].value * 0.25)" } } } }