/** @var int */
protected $offset = 0;
- /** @var array|string */
+ /** @var string[] */
protected $searchTerms = [];
/** @var bool */
* be converted to final in 1.34. Override self::doSearchArchiveTitle().
*
* @param string $term Raw search term
- * @return Status<Title[]>
+ * @return Status
* @since 1.29
*/
public function searchArchiveTitle( $term ) {
* Perform a title search in the article archive.
*
* @param string $term Raw search term
- * @return Status<Title[]>
+ * @return Status
* @since 1.32
*/
protected function doSearchArchiveTitle( $term ) {
return MediaWikiServices::getInstance()->getContentLanguage()->segmentByWord( $string );
}
- /**
- * Transform search term in cases when parts of the query came as different
- * GET params (when supported), e.g. for prefix queries:
- * search=test&prefix=Main_Page/Archive -> test prefix:Main Page/Archive
- * @param string $term
- * @return string
- * @deprecated since 1.32 this should now be handled internally by the
- * search engine
- */
- public function transformSearchTerm( $term ) {
- return $term;
- }
-
/**
* Get service class to finding near matches.
* @param Config $config Configuration to use for the matcher.