PHP Class Newscoop\Search\DefaultIndexClient

Inheritance: implements Newscoop\Search\IndexClientInterface
Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$add array Contains data to be added
$container Symfony\Component\DependencyInjection\Container Symfony container
$delete array Contains data to be deleted
$item Newscoop\Search\DocumentInterface Indexable item
$service Newscoop\Search\ServiceInterface Newscoop service interface
$update array Contains data to be updated

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\DependencyInjection\Container $container )
add ( array $document ) : boolean Adds data to inderxer
delete ( string $document ) : boolean Delete item from index
deleteAll ( ) : boolean Delete all indexed data
flush ( ) : boolean Flush all commands
isEnabled ( $clientName )
isTypeIndexable ( $serviceName, $subType )
setItem ( Newscoop\Search\DocumentInterface $item ) Set item. This method gives the possibility for the indexing client to access extra data in regards to the default indexable content;
setService ( Newscoop\Search\ServiceInterface $service ) Set service for
update ( array $document ) : boolean Updates element in indexer (if supported)

Method Details

__construct() public méthode

public __construct ( Symfony\Component\DependencyInjection\Container $container )
$container Symfony\Component\DependencyInjection\Container

add() public méthode

Adds data to inderxer
public add ( array $document ) : boolean
$document array Indexable array, must contain key 'id'
Résultat boolean

delete() public méthode

Delete item from index
public delete ( string $document ) : boolean
$document string Id of indexable data
Résultat boolean

deleteAll() public méthode

Delete all indexed data
public deleteAll ( ) : boolean
Résultat boolean

flush() public méthode

Flush all commands
public flush ( ) : boolean
Résultat boolean

isEnabled() public méthode

public isEnabled ( $clientName )

isTypeIndexable() public méthode

public isTypeIndexable ( $serviceName, $subType )

setItem() public méthode

Set item. This method gives the possibility for the indexing client to access extra data in regards to the default indexable content;
public setItem ( Newscoop\Search\DocumentInterface $item )
$item Newscoop\Search\DocumentInterface

setService() public méthode

Set service for
public setService ( Newscoop\Search\ServiceInterface $service )
$service Newscoop\Search\ServiceInterface

update() public méthode

Updates element in indexer (if supported)
public update ( array $document ) : boolean
$document array Re-indexable data, must contain key 'id'
Résultat boolean

Property Details

$add protected_oe property

Contains data to be added
protected array $add
Résultat array

$container protected_oe property

Symfony container
protected Container,Symfony\Component\DependencyInjection $container
Résultat Symfony\Component\DependencyInjection\Container

$delete protected_oe property

Contains data to be deleted
protected array $delete
Résultat array

$item protected_oe property

Indexable item
protected DocumentInterface,Newscoop\Search $item
Résultat Newscoop\Search\DocumentInterface

$service protected_oe property

Newscoop service interface
protected ServiceInterface,Newscoop\Search $service
Résultat Newscoop\Search\ServiceInterface

$update protected_oe property

Contains data to be updated
protected array $update
Résultat array