| [ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Mssql search engine This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
| File Size: | 210 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
SearchMssql:: (11 methods):
searchText()
searchTitle()
queryNamespaces()
queryLimit()
queryRanking()
getQuery()
getIndexField()
queryMain()
parseQuery()
update()
updateTitle()
Class: SearchMssql - X-Ref
Search engine hook base class for Mssql (ConText).| searchText( $term ) X-Ref |
| Perform a full text search query and return a result set. param: string $term Raw search term return: SqlSearchResultSet |
| searchTitle( $term ) X-Ref |
| Perform a title-only search query and return a result set. param: string $term Raw search term return: SqlSearchResultSet |
| queryNamespaces() X-Ref |
| Return a partial WHERE clause to limit the search to the given namespaces return: string |
| queryLimit( $sql ) X-Ref |
| Return a LIMIT clause to limit results on the query. param: string $sql return: string |
| queryRanking( $filteredTerm, $fulltext ) X-Ref |
| Does not do anything for generic search engine subclasses may define this though param: string $filteredTerm param: bool $fulltext return: string |
| getQuery( $filteredTerm, $fulltext ) X-Ref |
| Construct the full SQL query to do the search. The guts shoulds be constructed in queryMain() param: string $filteredTerm param: bool $fulltext return: string |
| getIndexField( $fulltext ) X-Ref |
| Picks which field to index on, depending on what type of query. param: bool $fulltext return: string |
| queryMain( $filteredTerm, $fulltext ) X-Ref |
| Get the base part of the search query. param: string $filteredTerm param: bool $fulltext return: string |
| parseQuery( $filteredText, $fulltext ) X-Ref |
| No description |
| update( $id, $title, $text ) X-Ref |
| Create or update the search index record for the given page. Title and text should be pre-processed. param: int $id param: string $title param: string $text return: bool|ResultWrapper |
| updateTitle( $id, $title ) X-Ref |
| Update a search index record's title only. Title should be pre-processed. param: int $id param: string $title return: bool|ResultWrapper |
| Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |