29 $it = $this->bcIterator();
30 $searchResult = $it->current();
32 return $searchResult ??
false;
41 $this->bcIterator()->rewind();
44 private function bcIterator() {
45 if ( $this->bcIterator ===
null ) {
47 $this->bcIterator =
'RECURSION';
49 } elseif ( $this->bcIterator ===
'RECURSION' ) {
55 wfDeprecated( static::class .
' without implementing extractResults',
'1.32' );
56 $this->bcIterator =
new ArrayIterator( [] );
58 return $this->bcIterator;
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
BaseSearchResultSet is the base class that must be extended by SearchEngine search result set impleme...
termMatches()
Fetch an array of regular expression fragments for matching the search terms as parsed by this engine...
free()
Frees the result set, if applicable.
next()
Fetches next search result, or false.
rewind()
Rewind result set back to beginning.
A set of SearchEngine results.