Skip to content

Commit

Permalink
Added 'query_cache' option for search
Browse files Browse the repository at this point in the history
  • Loading branch information
JanJakes committed Jul 7, 2015
1 parent 860c4b0 commit ba416dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Elastica/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Search
const OPTION_SIZE = 'size';
const OPTION_SCROLL = 'scroll';
const OPTION_SCROLL_ID = 'scroll_id';
const OPTION_QUERY_CACHE = 'query_cache';

/*
* Search types
Expand Down Expand Up @@ -284,6 +285,7 @@ protected function _validateOption($key)
case self::OPTION_SCROLL_ID:
case self::OPTION_SEARCH_TYPE_SUGGEST:
case self::OPTION_SEARCH_IGNORE_UNAVAILABLE:
case self::OPTION_QUERY_CACHE:
return true;
}

Expand Down

0 comments on commit ba416dd

Please sign in to comment.