MediaWiki
REL1_24
|
Search engine hook base class for Mssql (ConText). More...
Public Member Functions | |
getIndexField ($fulltext) | |
Picks which field to index on, depending on what type of query. | |
getQuery ($filteredTerm, $fulltext) | |
Construct the full SQL query to do the search. | |
parseQuery ($filteredText, $fulltext) | |
queryLimit ($sql) | |
Return a LIMIT clause to limit results on the query. | |
queryMain ($filteredTerm, $fulltext) | |
Get the base part of the search query. | |
queryNamespaces () | |
Return a partial WHERE clause to limit the search to the given namespaces. | |
queryRanking ($filteredTerm, $fulltext) | |
Does not do anything for generic search engine subclasses may define this though. | |
searchText ($term) | |
Perform a full text search query and return a result set. | |
searchTitle ($term) | |
Perform a title-only search query and return a result set. | |
update ($id, $title, $text) | |
Create or update the search index record for the given page. | |
updateTitle ($id, $title) | |
Update a search index record's title only. |
Search engine hook base class for Mssql (ConText).
Definition at line 28 of file SearchMssql.php.
SearchMssql::getIndexField | ( | $ | fulltext | ) |
Picks which field to index on, depending on what type of query.
bool | $fulltext |
Definition at line 110 of file SearchMssql.php.
Referenced by parseQuery().
SearchMssql::getQuery | ( | $ | filteredTerm, |
$ | fulltext | ||
) |
Construct the full SQL query to do the search.
The guts shoulds be constructed in queryMain()
string | $filteredTerm | |
bool | $fulltext |
Definition at line 98 of file SearchMssql.php.
References queryLimit(), queryMain(), queryNamespaces(), and queryRanking().
Referenced by searchText(), and searchTitle().
SearchMssql::parseQuery | ( | $ | filteredText, |
$ | fulltext | ||
) |
string | $filteredText | |
bool | $fulltext |
Definition at line 137 of file SearchMssql.php.
References $regexp, $wgContLang, array(), as, empty, getIndexField(), global, and SearchEngine\legalSearchChars().
Referenced by queryMain().
SearchMssql::queryLimit | ( | $ | sql | ) |
Return a LIMIT clause to limit results on the query.
string | $sql |
Definition at line 74 of file SearchMssql.php.
Referenced by getQuery().
SearchMssql::queryMain | ( | $ | filteredTerm, |
$ | fulltext | ||
) |
Get the base part of the search query.
string | $filteredTerm | |
bool | $fulltext |
Definition at line 122 of file SearchMssql.php.
References parseQuery().
Referenced by getQuery().
Return a partial WHERE clause to limit the search to the given namespaces.
Definition at line 59 of file SearchMssql.php.
References SearchEngine\$namespaces, and namespaces.
Referenced by getQuery().
SearchMssql::queryRanking | ( | $ | filteredTerm, |
$ | fulltext | ||
) |
Does not do anything for generic search engine subclasses may define this though.
string | $filteredTerm | |
bool | $fulltext |
Definition at line 86 of file SearchMssql.php.
Referenced by getQuery().
SearchMssql::searchText | ( | $ | term | ) |
Perform a full text search query and return a result set.
string | $term | Raw search term |
Reimplemented from SearchEngine.
Definition at line 36 of file SearchMssql.php.
References $term, SearchDatabase\filter(), and getQuery().
SearchMssql::searchTitle | ( | $ | term | ) |
Perform a title-only search query and return a result set.
string | $term | Raw search term |
Reimplemented from SearchEngine.
Definition at line 48 of file SearchMssql.php.
References $term, SearchDatabase\filter(), and getQuery().
SearchMssql::update | ( | $ | id, |
$ | title, | ||
$ | text | ||
) |
Create or update the search index record for the given page.
Title and text should be pre-processed.
int | $id | |
string | $title | |
string | $text |
Reimplemented from SearchEngine.
Definition at line 177 of file SearchMssql.php.
References $title.
SearchMssql::updateTitle | ( | $ | id, |
$ | title | ||
) |
Update a search index record's title only.
Title should be pre-processed.
int | $id | |
string | $title |
Reimplemented from SearchEngine.
Definition at line 200 of file SearchMssql.php.
References $title.