kernel/classes/ezsearch.php

Show: inherited
Table of Contents

File containing the eZSearch class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Package
kernel  
Version
4.6.0  

\eZSearch

Package: kernel

File containing the eZSearch class.

Copyright
Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.  
License
eZ Business Use License Agreement Version 2.0  
Version
4.6.0  

Methods

methodpublicaddNodeAssignment( int $mainNodeID, int $objectID, array $nodeAssignmentIDList ) : false | mixed
static

Notifies search engine about new node assignments added

Parameters
Name Type Description
$mainNodeID int
$objectID int
$nodeAssignmentIDList array
Returns
Type Description
false | mixed False in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.1  
methodpublicaddObject( \eZContentObject $contentObject, bool $commit = true ) : bool
static

Adds object $contentObject to the search database.

Parameters
Name Type Description
$contentObject \eZContentObject

Object to add to search engine

$commit bool

Whether to commit after adding the object

Returns
Type Description
bool True if the operation succeed.
methodpublicbuildSearchArray( ) : void
static

methodpubliccleanup( ) : void
static

methodpubliceZSearch( ) : void

methodpublicgetEngine( ) : void
static

methodpublicneedCommit( ) : void
static

methodpublicneedRemoveWithUpdate( ) : void
static

methodpublicnormalizeText(  $text ) : void
static

Parameters
Name Type Description
$text
methodpublicremoveNodeAssignment( int $mainNodeID, int $newMainNodeID, int $objectID, array $nodeAssigmentIDList ) : false | mixed
static

Notifies search engine about removed node assignments and what the new main node is (same if not changed)

Parameters
Name Type Description
$mainNodeID int
$newMainNodeID int
$objectID int
$nodeAssigmentIDList array
Returns
Type Description
false | mixed False in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.1  
methodpublicremoveNodes( array $nodeIdList ) : false | mixed
static

Notifies search engine about nodes being removed

Parameters
Name Type Description
$nodeIdList array

Array of node ID to remove.

Returns
Type Description
false | mixed False in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.1  
methodpublicremoveObject( \eZContentObject $contentObject, bool $commit = true ) : bool
static

Removes object $contentObject from the search database.

Parameters
Name Type Description
$contentObject \eZContentObject

the content object to remove

$commit bool

Whether to commit after removing the object

Returns
Type Description
bool True if the operation succeed.
methodpublicsearch(  $searchText,  $params,  $searchTypes = array() ) : void
static

Parameters
Name Type Description
$searchText
$params
$searchTypes
methodpublicswapNode( int $nodeID, int $selectedNodeID, array $nodeIdList = array() ) : false | mixed
static

Notifies search engine about an swap node operation

Parameters
Name Type Description
$nodeID int
$selectedNodeID int
$nodeIdList array
Returns
Type Description
false | mixed False in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.1  
methodpublicupdateNodeSection( int $nodeID, int $sectionID ) : false | mixed
static

Notifies search engine about section changes

Parameters
Name Type Description
$nodeID int
$sectionID int
Returns
Type Description
false | mixed False in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.1  
methodpublicupdateNodeVisibility( int $nodeID, string $action ) : false | mixed
static

Notifies search engine about node visibility changes

Parameters
Name Type Description
$nodeID int
$action string

"hide" or "show"

Returns
Type Description
false | mixed False in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.1  
methodpublicupdateObjectState( int $objectID, array $objectStateList ) : false | mixed
static

Notifies search engine about updates to object states

Parameters
Name Type Description
$objectID int
$objectStateList array
Returns
Type Description
false | mixed False in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.1  
methodpublicupdateObjectsSection( array $objectIDs, int $sectionID ) : false | mixed
static

Notifies search engine about the change of section of a set of objects

Parameters
Name Type Description
$objectIDs array
$sectionID int
Returns
Type Description
false | mixed false in case method is undefined, otherwise return the result of the search engine call
Details
Since
4.6  
Documentation was generated by DocBlox 0.18.1.