Lines Matching refs:Search
25 * @var Search
51 public function __construct(Search $search, string $expiryTime = '1m')
86 $this->_search->setOption(Search::OPTION_SCROLL, $this->expiryTime);
87 $this->_search->setOption(Search::OPTION_SCROLL_ID, $this->_nextScrollId);
136 $this->_search->setOption(Search::OPTION_SCROLL, $this->expiryTime);
137 $this->_search->setOption(Search::OPTION_SCROLL_ID, null);
157 [Search::OPTION_SCROLL_ID => [$this->_nextScrollId]]
194 if ($this->_search->hasOption(Search::OPTION_SCROLL)) {
195 $this->_options[0] = $this->_search->getOption(Search::OPTION_SCROLL);
198 if ($this->_search->hasOption(Search::OPTION_SCROLL_ID)) {
199 $this->_options[1] = $this->_search->getOption(Search::OPTION_SCROLL_ID);
202 if ($this->_search->hasOption(Search::OPTION_SEARCH_IGNORE_UNAVAILABLE)) {
204 $this->_options[2] = $this->_search->getOption(Search::OPTION_SEARCH_IGNORE_UNAVAILABLE);
209 unset($searchOptions[Search::OPTION_SEARCH_IGNORE_UNAVAILABLE]);
220 $this->_search->setOption(Search::OPTION_SCROLL, $this->_options[0]);
221 $this->_search->setOption(Search::OPTION_SCROLL_ID, $this->_options[1]);
223 $this->_search->setOption(Search::OPTION_SEARCH_IGNORE_UNAVAILABLE, $this->_options[2]);