Was only called by SpecialSearch, according to IResultWrapper::free()
this method is rarely worth being called. Therefor it does not seem wise
to expose it in the upcoming interface defining a search result set.
Bug: T228626
Change-Id: I12d41a488025eb2d6dd543c9fbdc1c803c840316
and should no longer be passed. Search engine implemenations should be
responsible for carrying relevant information needed for highlighting with
their own SearchResultSet/SearchResult sub-classes.
+* SearchResultSet::free() method is deprecated.
* SearchEngine::$searchTerms protected field is deprecated. Moved to
SearchDatabase.
* The use of the $terms param in the ShowSearchHit and ShowSearchHitTitle
/**
* Frees the result set, if applicable.
+ * @deprecated noop since 1.34
*/
function free() {
- // ...
}
/**
return $this->results;
}
- function free() {
- if ( $this->resultSet === false ) {
- return;
- }
-
- $this->resultSet->free();
- }
-
function getTotalHits() {
if ( !is_null( $this->totalHits ) ) {
return $this->totalHits;
$term, $this->offset, $titleMatches, $textMatches
) );
- if ( $titleMatches ) {
- $titleMatches->free();
- }
-
- if ( $textMatches ) {
- $textMatches->free();
- }
-
$out->addHTML( '<div class="mw-search-visualclear"></div>' );
// prev/next links