72 if ( $dqe->errno == 1064 ) {
75 "Query incompatible with database engine. For more information: " .
76 "https://bugs.mysql.com/bug.php?id=78485 https://jira.mariadb.org/browse/MDEV-21750 / " .
77 "https://phabricator.wikimedia.org/T355096",
78 1064, $dqe->sql, __METHOD__
105 return trim( preg_replace(
"/[^{$lc}]/",
" ", $text ) );
116 if ( $queryAndNs ===
false ) {
119 $this->namespaces = $queryAndNs[1];
120 return $queryAndNs[0];
Base search engine base class for database-backed searches.
doSearchTextInDB( $term)
Perform a full text search query and return a result set.
string[] $searchTerms
search terms
filter( $text)
Return a 'cleaned up' search string.
doSearchTitleInDB( $term)
Perform a title-only search query and return a result set.
extractNamespacePrefix( $term)
Extract the optional namespace prefix and set self::namespaces accordingly and return the query strin...
__construct(IConnectionProvider $dbProvider)
IConnectionProvider $dbProvider
Contain a class for special pages.
static parseNamespacePrefixes( $query, $withAllKeyword=true, $withPrefixSearchExtractNamespaceHook=false)
Parse some common prefixes: all (search everything) or namespace names.
legalSearchChars( $type=self::CHARS_ALL)
Get chars legal for search.