PHP Class Newscoop\Search\Indexer

Show file Open project: sourcefabric/newscoop

Protected Properties

Property 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

Public Methods

Method 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

Method Description
getIndexClients ( ) : array Get installed indexing clients

Method Details

__construct() public method

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 method

Clear all indexed timestamps
public clearAll ( ) : void
return void

delete() public method

Delete event listener
public delete ( $event ) : void
return void

deleteAll() public method

Delete all docs from indexing clients
public deleteAll ( ) : void
return void

update() public method

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
return void

Property Details

$container protected property

protected IndexClientInterface,Newscoop\Search $container
return Newscoop\Search\IndexClientInterface

$indexClients protected property

Array containing object of Newscoop\Search\IndexClientInterface
protected Array $indexClients
return Array

$name protected property

Name of the indexer
protected string $name
return string

$repository protected property

protected RepositoryInterface,Newscoop\Search $repository
return Newscoop\Search\RepositoryInterface

$service protected property

protected ServiceInterface,Newscoop\Search $service
return Newscoop\Search\ServiceInterface