96 return trim( preg_replace(
"/[^{$lc}]/",
" ", $text ) );
107 if ( $queryAndNs ===
false ) {
110 $this->namespaces = $queryAndNs[1];
111 return $queryAndNs[0];
Base search engine base class for database-backed searches Stable to extend.
__construct(ILoadBalancer $lb)
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...
IDatabase $db
(backwards compatibility)
Contain a class for special pages Stable to extend.
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.