PHP Class Newscoop\Search\Indexer

Afficher le fichier Open project: sourcefabric/newscoop

Protected Properties

Свойство Type Description
$container Newscoop\Search\IndexClientInterface
$indexClients Array Array containing object of Newscoop\Search\IndexClientInterface
$name string Name of the indexer
$repository Newscoop\Search\RepositoryInterface
$service Newscoop\Search\ServiceInterface

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\DependencyInjection\Container $container, Newscoop\Search\ServiceInterface $service, Newscoop\Search\RepositoryInterface $repository = null, $indexerName )
clearAll ( ) : void Clear all indexed timestamps
delete ( $event ) : void Delete event listener
deleteAll ( ) : void Delete all docs from indexing clients
update ( mixed $count = 50, array $filter = null ) : void Update index

Private Methods

Méthode Description
getIndexClients ( ) : array Get installed indexing clients

Method Details

__construct() public méthode

public __construct ( Symfony\Component\DependencyInjection\Container $container, Newscoop\Search\ServiceInterface $service, Newscoop\Search\RepositoryInterface $repository = null, $indexerName )
$container Symfony\Component\DependencyInjection\Container
$service Newscoop\Search\ServiceInterface
$repository Newscoop\Search\RepositoryInterface

clearAll() public méthode

Clear all indexed timestamps
public clearAll ( ) : void
Résultat void

delete() public méthode

Delete event listener
public delete ( $event ) : void
Résultat void

deleteAll() public méthode

Delete all docs from indexing clients
public deleteAll ( ) : void
Résultat void

update() public méthode

Update index
public update ( mixed $count = 50, array $filter = null ) : void
$count mixed Number of items to index
$filter array Filter for the batch results
Résultat void

Property Details

$container protected_oe property

protected IndexClientInterface,Newscoop\Search $container
Résultat Newscoop\Search\IndexClientInterface

$indexClients protected_oe property

Array containing object of Newscoop\Search\IndexClientInterface
protected Array $indexClients
Résultat Array

$name protected_oe property

Name of the indexer
protected string $name
Résultat string

$repository protected_oe property

protected RepositoryInterface,Newscoop\Search $repository
Résultat Newscoop\Search\RepositoryInterface

$service protected_oe property

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