PHP Class WellCommerce\Bundle\SearchBundle\Manager\IndexManager

Author: Adam Piotrowski ([email protected])
Afficher le fichier Open project: wellcommerce/wellcommerce

Méthodes publiques

Méthode Description
__construct ( string $indexName, WellCommerce\Bundle\SearchBundle\Factory\DocumentFactoryInterface $documentFactory, WellCommerce\Bundle\SearchBundle\Adapter\SearchAdapterInterface $adapter, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository, SearchResultStorage $storage ) IndexManager constructor.
addEntity ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )
getEntitiesCollection ( Doctrine\Common\Collections\Criteria $criteria ) : Doctrine\Common\Collections\Collection
getIndexName ( ) : string
getTotalEntities ( ) : integer
optimizeIndex ( )
purgeIndex ( )
removeEntity ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )
search ( SearchQuery $query ) : array
updateEntity ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )

Method Details

__construct() public méthode

IndexManager constructor.
public __construct ( string $indexName, WellCommerce\Bundle\SearchBundle\Factory\DocumentFactoryInterface $documentFactory, WellCommerce\Bundle\SearchBundle\Adapter\SearchAdapterInterface $adapter, WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface $repository, SearchResultStorage $storage )
$indexName string
$documentFactory WellCommerce\Bundle\SearchBundle\Factory\DocumentFactoryInterface
$adapter WellCommerce\Bundle\SearchBundle\Adapter\SearchAdapterInterface
$repository WellCommerce\Bundle\DoctrineBundle\Repository\RepositoryInterface
$storage WellCommerce\Bundle\SearchBundle\Storage\SearchResultStorage

addEntity() public méthode

public addEntity ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface

getEntitiesCollection() public méthode

public getEntitiesCollection ( Doctrine\Common\Collections\Criteria $criteria ) : Doctrine\Common\Collections\Collection
$criteria Doctrine\Common\Collections\Criteria
Résultat Doctrine\Common\Collections\Collection

getIndexName() public méthode

public getIndexName ( ) : string
Résultat string

getTotalEntities() public méthode

public getTotalEntities ( ) : integer
Résultat integer

optimizeIndex() public méthode

public optimizeIndex ( )

purgeIndex() public méthode

public purgeIndex ( )

removeEntity() public méthode

public removeEntity ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface

updateEntity() public méthode

public updateEntity ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface