Skip to content

Commit c7939d1

Browse files
authored
Merge pull request #1243 from ilanrivers/featureShardRequestCache
Added support for search option 'request_cache'
2 parents 1d4f68a + 728a851 commit c7939d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Elastica/Search.php

100644100755
+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Search
2626
const OPTION_SCROLL_ID = 'scroll_id';
2727
const OPTION_QUERY_CACHE = 'query_cache';
2828
const OPTION_TERMINATE_AFTER = 'terminate_after';
29+
const OPTION_SHARD_REQUEST_CACHE = 'request_cache';
2930

3031
/*
3132
* Search types
@@ -290,6 +291,7 @@ protected function _validateOption($key)
290291
case self::OPTION_SEARCH_IGNORE_UNAVAILABLE:
291292
case self::OPTION_QUERY_CACHE:
292293
case self::OPTION_TERMINATE_AFTER:
294+
case self::OPTION_SHARD_REQUEST_CACHE:
293295
return true;
294296
}
295297

0 commit comments

Comments
 (0)