Inherits SearchEngine.
Public Member Functions | |
| __construct ($db) | |
| 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. | |
| queryRedirect () | |
| Return a partial WHERE clause to exclude redirects, if so set. | |
| queryNamespaces () | |
| Return a partial WHERE clause to limit the search to the given namespaces. | |
| queryLimit ($sql) | |
| Return a LIMIT clause to limit results on the query. | |
| queryRanking ($filteredTerm, $fulltext) | |
| Does not do anything for generic search engine subclasses may define this though. | |
| getQuery ($filteredTerm, $fulltext) | |
| Construct the full SQL query to do the search. | |
| getIndexField ($fulltext) | |
| Picks which field to index on, depending on what type of query. | |
| queryMain ($filteredTerm, $fulltext) | |
| Get the base part of the search query. | |
| parseQuery ($filteredText, $fulltext) | |
| Parse a user input search string, and return an SQL fragment to be used as part of a WHERE clause. | |
| 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. | |
Definition at line 29 of file SearchOracle.php.
| SearchOracle::__construct | ( | $ | db | ) |
| SearchOracle::getIndexField | ( | $ | fulltext | ) |
Picks which field to index on, depending on what type of query.
| bool | $fulltext |
Definition at line 127 of file SearchOracle.php.
Referenced by parseQuery().
| SearchOracle::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 114 of file SearchOracle.php.
References queryLimit(), queryMain(), queryNamespaces(), queryRanking(), and queryRedirect().
| SearchOracle::parseQuery | ( | $ | filteredText, | |
| $ | fulltext | |||
| ) |
Parse a user input search string, and return an SQL fragment to be used as part of a WHERE clause.
Definition at line 152 of file SearchOracle.php.
References $wgContLang, getIndexField(), and SearchEngine::legalSearchChars().
Referenced by queryMain().
| SearchOracle::queryLimit | ( | $ | sql | ) |
Return a LIMIT clause to limit results on the query.
Definition at line 93 of file SearchOracle.php.
References $sql.
Referenced by getQuery().
| SearchOracle::queryMain | ( | $ | filteredTerm, | |
| $ | fulltext | |||
| ) |
Get the base part of the search query.
| string | $filteredTerm | |
| bool | $fulltext |
Definition at line 139 of file SearchOracle.php.
References $page, and parseQuery().
Referenced by getQuery().
| SearchOracle::queryNamespaces | ( | ) |
Return a partial WHERE clause to limit the search to the given namespaces.
Definition at line 77 of file SearchOracle.php.
References SearchEngine::$namespaces.
Referenced by getQuery().
| SearchOracle::queryRanking | ( | $ | filteredTerm, | |
| $ | fulltext | |||
| ) |
Does not do anything for generic search engine subclasses may define this though.
Definition at line 103 of file SearchOracle.php.
Referenced by getQuery().
| SearchOracle::queryRedirect | ( | ) |
Return a partial WHERE clause to exclude redirects, if so set.
Definition at line 64 of file SearchOracle.php.
Referenced by getQuery().
| SearchOracle::searchText | ( | $ | term | ) |
Perform a full text search query and return a result set.
| string | $term - Raw search term |
Reimplemented from SearchEngine.
Definition at line 41 of file SearchOracle.php.
| SearchOracle::searchTitle | ( | $ | term | ) |
Perform a title-only search query and return a result set.
| string | $term - Raw search term |
Reimplemented from SearchEngine.
Definition at line 53 of file SearchOracle.php.
| SearchOracle::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 190 of file SearchOracle.php.
| SearchOracle::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 210 of file SearchOracle.php.
1.5.9