KWeb  6.4
KWebSearch_Indexer_Lucene Class Reference
Inheritance diagram for KWebSearch_Indexer_Lucene:
KWebSearch_Indexer_Content KWebSearch_Indexer

Public Member Functions

 getIndexFilePath ()
 rebuildIndex ()
 Rebuilds the whole index.
 optimizeIndex ()
 refreshContents ($items, $mayExist, array $options=array())
 Refreshes all index's defined contents, limited to specified set of items.
 addContent (KWebContent $content, $from)
 Adds content to the index.
 storeChanges ()
 searchRun (KWebSearch $search)
 Runs the search query and returns the result.
 extractFieldFromHit ($collection, Zend_Search_Lucene_Search_QueryHit $hit, $field, $default)
 expandQuery (KWebSearch $search)
 removeContents ($items)

Static Public Member Functions

static instance ($id, $create=true)

Data Fields

const LANG_IMPL = 'impl'
 $index

Protected Member Functions

 __construct ($id)
 prepareIndexFile ()

Constructor & Destructor Documentation

KWebSearch_Indexer_Lucene::__construct ( id) [protected]

Reimplemented from KWebSearch_Indexer_Content.


Member Function Documentation

KWebSearch_Indexer_Lucene::addContent ( KWebContent content,
from 
)

Adds content to the index.

Reimplemented from KWebSearch_Indexer_Content.

KWebSearch_Indexer_Lucene::expandQuery ( KWebSearch search)

Reimplemented from KWebSearch_Indexer.

KWebSearch_Indexer_Lucene::extractFieldFromHit ( collection,
Zend_Search_Lucene_Search_QueryHit $  hit,
field,
default 
)
KWebSearch_Indexer_Lucene::getIndexFilePath ( )
static KWebSearch_Indexer_Lucene::instance ( id,
create = true 
) [static]
KWebSearch_Indexer_Lucene::optimizeIndex ( )

Reimplemented from KWebSearch_Indexer.

KWebSearch_Indexer_Lucene::prepareIndexFile ( ) [protected]
KWebSearch_Indexer_Lucene::rebuildIndex ( )

Rebuilds the whole index.

Reimplemented from KWebSearch_Indexer_Content.

KWebSearch_Indexer_Lucene::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 from KWebSearch_Indexer_Content.

KWebSearch_Indexer_Lucene::removeContents ( items)
Parameters:
$items- array of items to remove as array(genre => array(id,id,...), genre => ...)

Reimplemented from KWebSearch_Indexer_Content.

KWebSearch_Indexer_Lucene::searchRun ( KWebSearch search)

Runs the search query and returns the result.

Returns:
KWebCollection_Objects

Reimplemented from KWebSearch_Indexer.

KWebSearch_Indexer_Lucene::storeChanges ( )

Reimplemented from KWebSearch_Indexer_Content.


Field Documentation

KWebSearch_Indexer_Lucene::$index

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