KWeb
6.4
|
Searching indexer base class Indexers are singleton objects used to handle creation of index (for content indexers), preparation of SQL queries (for sql indexers), and execution of a query. More...
Public Member Functions | |
searchInitialize (KWebSearch $search) | |
Called in constructor of KWebSearch that will be using this indexer. | |
searchRun (KWebSearch $search) | |
Runs the search query and returns the result. | |
searchFinish () | |
parseResultItem ($resultItem) | |
Returns result item as a KWebSearch_ResultItem. | |
rebuildIndex () | |
optimizeIndex () | |
expandQuery (KWebSearch $search) | |
Static Public Member Functions | |
static | instance ($id, $create=true) |
Returns instance of the KWebSearch_Indexer specified by id (e.g. | |
Data Fields | |
const | OPT_CONTENTS = "contents" |
const | OPT_CONTENT_GENRE = "genre" |
const | OPT_CONTENT_ADAPTEROPTS = "adapterOptions" |
const | REFRESH_FROM_DEFINITION = 'from_definition' |
const | REFRESH_FROM_OFFSET = 'from_offset' |
const | GENRE = 'search_indexer' |
$id | |
$options | |
$wildcardChar = "*" | |
Static Public Attributes | |
static | $instances = array() |
Protected Member Functions | |
__construct ($id) | |
Protected Attributes | |
$search = null |
Searching indexer base class Indexers are singleton objects used to handle creation of index (for content indexers), preparation of SQL queries (for sql indexers), and execution of a query.
KWebSearch_Indexer::__construct | ( | $ | id | ) | [protected] |
Reimplemented in KWebSearch_Indexer_Sql, KWebSearch_Indexer_Content, and KWebSearch_Indexer_Lucene.
KWebSearch_Indexer::expandQuery | ( | KWebSearch $ | search | ) |
Reimplemented in KWebSearch_Indexer_Lucene, and KWebSearch_Indexer_Sql.
static KWebSearch_Indexer::instance | ( | $ | id, |
$ | create = true |
||
) | [static] |
Returns instance of the KWebSearch_Indexer specified by id (e.g.
sql, content)
Reimplemented in KWebSearch_Indexer_Sql, KWebSearch_Indexer_Lucene, and KWebSearch_Indexer_Content.
KWebSearch_Indexer::optimizeIndex | ( | ) |
Reimplemented in KWebSearch_Indexer_Lucene.
KWebSearch_Indexer::parseResultItem | ( | $ | resultItem | ) |
Returns result item as a KWebSearch_ResultItem.
KWebSearch_Indexer::rebuildIndex | ( | ) |
Reimplemented in KWebSearch_Indexer_Lucene, and KWebSearch_Indexer_Content.
KWebSearch_Indexer::searchFinish | ( | ) |
Reimplemented in KWebSearch_Indexer_Sql.
KWebSearch_Indexer::searchInitialize | ( | KWebSearch $ | search | ) |
Called in constructor of KWebSearch that will be using this indexer.
$search | KWebSearch |
Reimplemented in KWebSearch_Indexer_Sql.
KWebSearch_Indexer::searchRun | ( | KWebSearch $ | search | ) | [abstract] |
Runs the search query and returns the result.
Reimplemented in KWebSearch_Indexer_Lucene, and KWebSearch_Indexer_Sql.
KWebSearch_Indexer::$id |
KWebSearch_Indexer::$instances = array() [static] |
KWebSearch_Indexer::$options |
KWebSearch_Indexer::$search = null [protected] |
KWebSearch_Indexer::$wildcardChar = "*" |
const KWebSearch_Indexer::GENRE = 'search_indexer' |
const KWebSearch_Indexer::OPT_CONTENT_ADAPTEROPTS = "adapterOptions" |
const KWebSearch_Indexer::OPT_CONTENT_GENRE = "genre" |
const KWebSearch_Indexer::OPT_CONTENTS = "contents" |
const KWebSearch_Indexer::REFRESH_FROM_DEFINITION = 'from_definition' |
const KWebSearch_Indexer::REFRESH_FROM_OFFSET = 'from_offset' |