SolrStore, MWSearch and CirrusSearch all implement this and are
now free to drop their implementations.
Change-Id: Ia04bd3fc8526c35c3c9590c7fe4e2db2bc120283
return 0;
}
- /**
- * Return true if results are included in this result set.
- * STUB
- *
- * @return bool
- */
- function hasResults() {
- return false;
- }
-
/**
* Some search modes return a total hit count for the query
* in the entire article database. This may include pages
$this->result = $match;
}
- public function hasResult() {
- return (bool)$this->result;
- }
-
public function numRows() {
- return $this->hasResults() ? 1 : 0;
+ return $this->result ? 1 : 0;
}
public function next() {