PHP Class WellCommerce\Bundle\SearchBundle\Manager\IndexManager

Author: Adam Piotrowski ([email protected])
Mostra file Open project: wellcommerce/wellcommerce

Public Methods

Method 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 method

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 method

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

getEntitiesCollection() public method

public getEntitiesCollection ( Doctrine\Common\Collections\Criteria $criteria ) : Doctrine\Common\Collections\Collection
$criteria Doctrine\Common\Collections\Criteria
return Doctrine\Common\Collections\Collection

getIndexName() public method

public getIndexName ( ) : string
return string

getTotalEntities() public method

public getTotalEntities ( ) : integer
return integer

optimizeIndex() public method

public optimizeIndex ( )

purgeIndex() public method

public purgeIndex ( )

removeEntity() public method

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

updateEntity() public method

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