Lines Matching defs:_search
27 protected $_search;
53 $this->_search = $search;
86 $this->_search->setOption(Search::OPTION_SCROLL, $this->expiryTime);
87 $this->_search->setOption(Search::OPTION_SCROLL_ID, $this->_nextScrollId);
89 $this->_setScrollId($this->_search->search());
136 $this->_search->setOption(Search::OPTION_SCROLL, $this->expiryTime);
137 $this->_search->setOption(Search::OPTION_SCROLL_ID, null);
139 $this->_setScrollId($this->_search->search());
154 $this->_search->getClient()->request(
155 '_search/scroll',
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);
208 $searchOptions = $this->_search->getOptions();
210 $this->_search->setOptions($searchOptions);
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]);