Go to the documentation of this file.
95 return trim( preg_replace(
"/[^{$lc}]/",
" ", $text ) );
106 if ( $queryAndNs ===
false ) {
109 $this->namespaces = $queryAndNs[1];
110 return $queryAndNs[0];
__construct(ILoadBalancer $lb)
legalSearchChars( $type=self::CHARS_ALL)
Get chars legal for search.
static parseNamespacePrefixes( $query, $withAllKeyword=true, $withPrefixSearchExtractNamespaceHook=false)
Parse some common prefixes: all (search everything) or namespace names.
string[] $searchTerms
search terms
Base search engine base class for database-backed searches.
extractNamespacePrefix( $term)
Extract the optional namespace prefix and set self::namespaces accordingly and return the query strin...
Contain a class for special pages.
IDatabase $db
(backwards compatibility)
doSearchTextInDB( $term)
Perform a full text search query and return a result set.
doSearchTitleInDB( $term)
Perform a title-only search query and return a result set.
filter( $text)
Return a 'cleaned up' search string.