|
KWeb
6.4
|
This is the basic content indexer class. More...
Public Member Functions | |
| rebuildIndex () | |
| Rebuilds the whole index. | |
| refreshContents ($items, $mayExist, array $options=array()) | |
| Refreshes all index's defined contents, limited to specified set of items. | |
| refreshContentsByDefinition ($items, $contentDef, $mayExist, array $options=array()) | |
| Refreshes index contents using content definition. | |
| refreshContentsWithCollection (Collection $collection, $mayExist, array $options=array()) | |
| Refreshes index contents with collection. | |
| refreshObject (KWebObject $object, $mayExist) | |
| Refreshes specified object in the index. | |
| addContent (KWebContent $content, $from) | |
| Adds content to the index. | |
| removeContents ($items) | |
| storeChanges () | |
Static Public Member Functions | |
| static | instance ($id, $create=true) |
Protected Member Functions | |
| __construct ($id) | |
This is the basic content indexer class.
These indexers index contents independebly from the database.
| KWebSearch_Indexer_Content::__construct | ( | $ | id | ) | [protected] |
Reimplemented from KWebSearch_Indexer.
Reimplemented in KWebSearch_Indexer_Lucene.
| KWebSearch_Indexer_Content::addContent | ( | KWebContent $ | content, |
| $ | from | ||
| ) | [abstract] |
Adds content to the index.
Reimplemented in KWebSearch_Indexer_Lucene.
| static KWebSearch_Indexer_Content::instance | ( | $ | id, |
| $ | create = true |
||
| ) | [static] |
Reimplemented from KWebSearch_Indexer.
Reimplemented in KWebSearch_Indexer_Lucene.
| KWebSearch_Indexer_Content::rebuildIndex | ( | ) |
Rebuilds the whole index.
Reimplemented from KWebSearch_Indexer.
Reimplemented in KWebSearch_Indexer_Lucene.
| KWebSearch_Indexer_Content::refreshContents | ( | $ | items, |
| $ | mayExist, | ||
| array $ | options = array() |
||
| ) |
Refreshes all index's defined contents, limited to specified set of items.
| $items | - array of items to refresh (genre => array(id,id,...)), or false to refresh all |
| $mayExist | - TRUE if items may exist in the index already, false if not... |
Reimplemented in KWebSearch_Indexer_Lucene.
| KWebSearch_Indexer_Content::refreshContentsByDefinition | ( | $ | items, |
| $ | contentDef, | ||
| $ | mayExist, | ||
| array $ | options = array() |
||
| ) |
Refreshes index contents using content definition.
| $items | - array of items to refresh (genre => array(id,id,...)), or false to refresh all |
| KWebSearch_Indexer_Content::refreshContentsWithCollection | ( | Collection $ | collection, |
| $ | mayExist, | ||
| array $ | options = array() |
||
| ) |
Refreshes index contents with collection.
Returns the number of refreshed contents
| KWebSearch_Indexer_Content::refreshObject | ( | KWebObject $ | object, |
| $ | mayExist | ||
| ) |
Refreshes specified object in the index.
| KWebSearch_Indexer_Content::removeContents | ( | $ | items | ) |
| $items | - array of items to remove as array(genre => array(id,id,...), genre => ...) |
Reimplemented in KWebSearch_Indexer_Lucene.
| KWebSearch_Indexer_Content::storeChanges | ( | ) |
Reimplemented in KWebSearch_Indexer_Lucene.