PHP Класс Newscoop\Search\Indexer

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Приватные методы

Метод Описание
getIndexClients ( ) : array Get installed indexing clients

Описание методов

__construct() публичный метод

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() публичный метод

Clear all indexed timestamps
public clearAll ( ) : void
Результат void

delete() публичный метод

Delete event listener
public delete ( $event ) : void
Результат void

deleteAll() публичный метод

Delete all docs from indexing clients
public deleteAll ( ) : void
Результат void

update() публичный метод

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
Результат void

Описание свойств

$container защищенное свойство

protected IndexClientInterface,Newscoop\Search $container
Результат Newscoop\Search\IndexClientInterface

$indexClients защищенное свойство

Array containing object of Newscoop\Search\IndexClientInterface
protected Array $indexClients
Результат Array

$name защищенное свойство

Name of the indexer
protected string $name
Результат string

$repository защищенное свойство

protected RepositoryInterface,Newscoop\Search $repository
Результат Newscoop\Search\RepositoryInterface

$service защищенное свойство

protected ServiceInterface,Newscoop\Search $service
Результат Newscoop\Search\ServiceInterface