PHP Class Knp\Bundle\KnpBundlesBundle\Indexer\SolrIndexer

Author: Paweł Jędrzejewski ([email protected])
Datei anzeigen Open project: KnpLabs/KnpBundles Class Usage Examples

Protected Properties

Property Type Description
$doctrine Doctrine\Bundle\DoctrineBundle\Registry
$solarium Solarium_Client

Public Methods

Method Description
__construct ( Doctrine\Bundle\DoctrineBundle\Registry $doctrine, Solarium_Client $solarium )
deleteBundlesIndexes ( Bundle $bundle = null ) Delete all bundles from index
indexBundle ( Bundle $bundle ) Indexes single bundle.

Private Methods

Method Description
updateDocumentFromBundle ( Solarium_Document_ReadWrite $document, Bundle $bundle, Solarium_Query_Helper $helper ) Populates document with bundle data.

Method Details

__construct() public method

public __construct ( Doctrine\Bundle\DoctrineBundle\Registry $doctrine, Solarium_Client $solarium )
$doctrine Doctrine\Bundle\DoctrineBundle\Registry
$solarium Solarium_Client

deleteBundlesIndexes() public method

Delete all bundles from index
public deleteBundlesIndexes ( Bundle $bundle = null )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

indexBundle() public method

Indexes single bundle.
public indexBundle ( Bundle $bundle )
$bundle Knp\Bundle\KnpBundlesBundle\Entity\Bundle

Property Details

$doctrine protected_oe property

protected Registry,Doctrine\Bundle\DoctrineBundle $doctrine
return Doctrine\Bundle\DoctrineBundle\Registry

$solarium protected_oe property

protected Solarium_Client $solarium
return Solarium_Client