Skip to content

Commit 342572f

Browse files
authored
Hotfix: Restore index.max_result_window to Elasticsearch default of 10000 (#2056)
* Restore index.max_result_window to Elasticsearch default of 10000 * Fix a test
1 parent 700d5ba commit 342572f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

search/includes/classes/class-search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Search {
1111
public const QUERY_INTEGRATION_FORCE_ENABLE_KEY = 'vip-search-enabled';
1212
public const SEARCH_ALERT_SLACK_CHAT = '#vip-go-es-alerts';
1313
public const SEARCH_ALERT_LEVEL = 2; // Level 2 = 'alert'
14-
public const MAX_RESULT_WINDOW = 9000;
14+
public const MAX_RESULT_WINDOW = 10000;
1515
/**
1616
* Empty for now. Will flesh out once migration path discussions are underway and/or the same meta are added to the filter across many
1717
* sites.

tests/search/test-class-search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2994,7 +2994,7 @@ public function limit_max_result_window_data() {
29942994
],
29952995
[
29962996
'input' => 10000,
2997-
'expected' => 9000,
2997+
'expected' => 10000,
29982998
],
29992999
];
30003000
}

0 commit comments

Comments
 (0)