KWeb  6.4
KWebSearch_Indexer_Content Class Reference

This is the basic content indexer class. More...

Inheritance diagram for KWebSearch_Indexer_Content:
KWebSearch_Indexer KWebSearch_Indexer_Lucene

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)

Detailed Description

This is the basic content indexer class.

These indexers index contents independebly from the database.


Constructor & Destructor Documentation

KWebSearch_Indexer_Content::__construct ( id) [protected]

Reimplemented from KWebSearch_Indexer.

Reimplemented in KWebSearch_Indexer_Lucene.


Member Function Documentation

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]
Returns:
KWebSearch_Indexer_Content

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.

Parameters:
$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.

Parameters:
$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)
Parameters:
$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.


The documentation for this class was generated from the following file: