|
KWeb
6.4
|
SQL Indexer - operates directly on the database. More...
Public Member Functions | |
| searchInitialize (KWebSearch $search) | |
| Called in constructor of KWebSearch that will be using this indexer. | |
| searchFinish () | |
| addSqlQuery ($sql) | |
| Adds SQL query to current search. | |
| useExpansion () | |
| getSqlFullTextMatch ($columns, $fullText=true) | |
| getSqlMatchQuery ($table, $columns, $fullText=true, $useLang= 'item_lang', $idColumn= 'item_id', $genre=GENRE_ITEM) | |
| prepareQueries () | |
| prepareSql () | |
| searchRun (KWebSearch $search) | |
| Runs the search query and returns the result. | |
| expandQuery (KWebSearch $search) | |
Static Public Member Functions | |
| static | instance ($id, $create=true) |
| Returns instance of the FileDiscoverer specified by id (e.g. | |
Data Fields | |
| $useMatchAgainst = false | |
Protected Member Functions | |
| __construct ($id) | |
Protected Attributes | |
| $sqlQueries = array() | |
| $sqlQuery = false | |
| $queryLikes = array() | |
SQL Indexer - operates directly on the database.
Builds sql query on the fly
| KWebSearch_Indexer_Sql::__construct | ( | $ | id | ) | [protected] |
Reimplemented from KWebSearch_Indexer.
| KWebSearch_Indexer_Sql::addSqlQuery | ( | $ | sql | ) |
Adds SQL query to current search.
| KWebSearch_Indexer_Sql::expandQuery | ( | KWebSearch $ | search | ) |
Reimplemented from KWebSearch_Indexer.
| KWebSearch_Indexer_Sql::getSqlFullTextMatch | ( | $ | columns, |
| $ | fullText = true |
||
| ) |
| KWebSearch_Indexer_Sql::getSqlMatchQuery | ( | $ | table, |
| $ | columns, | ||
| $ | fullText = true, |
||
| $ | useLang = 'item_lang', |
||
| $ | idColumn = 'item_id', |
||
| $ | genre = GENRE_ITEM |
||
| ) |
| static KWebSearch_Indexer_Sql::instance | ( | $ | id, |
| $ | create = true |
||
| ) | [static] |
Returns instance of the FileDiscoverer specified by id (e.g.
class, image, js and so on)
Reimplemented from KWebSearch_Indexer.
| KWebSearch_Indexer_Sql::prepareQueries | ( | ) |
| KWebSearch_Indexer_Sql::prepareSql | ( | ) |
| KWebSearch_Indexer_Sql::searchFinish | ( | ) |
Reimplemented from KWebSearch_Indexer.
| KWebSearch_Indexer_Sql::searchInitialize | ( | KWebSearch $ | search | ) |
Called in constructor of KWebSearch that will be using this indexer.
| $search | KWebSearch |
Reimplemented from KWebSearch_Indexer.
| KWebSearch_Indexer_Sql::searchRun | ( | KWebSearch $ | search | ) |
Runs the search query and returns the result.
Reimplemented from KWebSearch_Indexer.
| KWebSearch_Indexer_Sql::useExpansion | ( | ) |
KWebSearch_Indexer_Sql::$queryLikes = array() [protected] |
KWebSearch_Indexer_Sql::$sqlQueries = array() [protected] |
KWebSearch_Indexer_Sql::$sqlQuery = false [protected] |
| KWebSearch_Indexer_Sql::$useMatchAgainst = false |