PHP 클래스 WellCommerce\Bundle\SearchBundle\Manager\IndexManager

저자: Adam Piotrowski ([email protected])
파일 보기 프로젝트 열기: wellcommerce/wellcommerce

공개 메소드들

메소드 설명
__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 )

메소드 상세

__construct() 공개 메소드

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 addEntity ( WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface $entity )
$entity WellCommerce\Bundle\DoctrineBundle\Entity\EntityInterface

getEntitiesCollection() 공개 메소드

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

getIndexName() 공개 메소드

public getIndexName ( ) : string
리턴 string

getTotalEntities() 공개 메소드

public getTotalEntities ( ) : integer
리턴 integer

optimizeIndex() 공개 메소드

public optimizeIndex ( )

purgeIndex() 공개 메소드

public purgeIndex ( )

removeEntity() 공개 메소드

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

updateEntity() 공개 메소드

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