eZPublish  4.4
eZSearch Class Reference

eZSearch handles indexing of objects to the search engine More...

Public Member Functions

 eZSearch ()
 

Static Public Member Functions

static addNodeAssignment ($mainNodeID, $objectID, $nodeAssignmentIDList)
 
static addObject ($contentObject, $commit=true)
 
static buildSearchArray ()
 
static cleanup ()
 
static getEngine ()
 
static needCommit ()
 
static needRemoveWithUpdate ()
 
static normalizeText ($text)
 
static removeNodeAssignment ($mainNodeID, $newMainNodeID, $objectID, $nodeAssigmentIDList)
 
static removeNodes (array $nodeIdList)
 Removes nodes from the search engine. More...
 
static removeObject ($contentObject, $commit=true)
 
static search ($searchText, $params, $searchTypes=array())
 
static swapNode ($nodeID, $selectedNodeID, $nodeIdList=array())
 
static updateNodeSection ($nodeID, $sectionID)
 
static updateNodeVisibility ($nodeID, $action)
 
static updateObjectState ($objectID, $objectStateList)
 

Detailed Description

eZSearch handles indexing of objects to the search engine

Member Function Documentation

static eZSearch::addNodeAssignment (   $mainNodeID,
  $objectID,
  $nodeAssignmentIDList 
)
static
static eZSearch::addObject (   $contentObject,
  $commit = true 
)
static

Will index the content object to the search engine. A commit parameter is added since 4.1 to accomodate requirements of several search plugins

Referenced by eZContentOperationCollection\registerSearchObject().

static eZSearch::buildSearchArray ( )
static

returns search parameters in array based on supported search types and post variables

Referenced by eZContentFunctionCollection\fetchContentSearch().

static eZSearch::cleanup ( )
static

Tells the current search engine to cleanup up all data.

eZSearch::eZSearch ( )
static eZSearch::needCommit ( )
static

determine how to pass the commit argument, for deletes and updates maybe this needs to be further splitted

Referenced by eZContentOperationCollection\registerSearchObject().

static eZSearch::needRemoveWithUpdate ( )
static

See if a remove is needed in an update of content objects

Referenced by eZContentOperationCollection\registerSearchObject().

static eZSearch::normalizeText (   $text)
static
static eZSearch::removeNodeAssignment (   $mainNodeID,
  $newMainNodeID,
  $objectID,
  $nodeAssigmentIDList 
)
static
static eZSearch::removeNodes ( array  $nodeIdList)
static

Removes nodes from the search engine.

Parameters
array$nodeIdListArray of node ID to remove.
Returns
false in case of error, otherwise return the result of the search engine call

Referenced by eZContentOperationCollection\removeNodes().

static eZSearch::removeObject (   $contentObject,
  $commit = true 
)
static

Will remove the index from the given object from the search engine A commit parameter is added since 4.1 to accomodate requirements of several search plugins

Referenced by eZContentObject\purge(), eZContentOperationCollection\registerSearchObject(), and eZContentObject\removeThis().

static eZSearch::search (   $searchText,
  $params,
  $searchTypes = array() 
)
static

Runs a query to the search engine.

Referenced by eZContentFunctionCollection\fetchContentSearch().

static eZSearch::swapNode (   $nodeID,
  $selectedNodeID,
  $nodeIdList = array() 
)
static
static eZSearch::updateNodeSection (   $nodeID,
  $sectionID 
)
static
static eZSearch::updateNodeVisibility (   $nodeID,
  $action 
)
static
static eZSearch::updateObjectState (   $objectID,
  $objectStateList 
)
static

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