PHP Class Algolia_Algoliasearch_Model_Indexer_Abstract, algoliasearch-magento

Inheritance: extends Mage_Index_Model_Indexer_Abstract
Show file Open project: algolia/algoliasearch-magento Class Usage Examples

Protected Properties

Property Type Description
$enableQueueMsg
$engine Algolia_Algoliasearch_Model_Resource_Engine

Public Methods

Method Description
__construct ( )
reindexSpecificCategories ( array | string | integer $updateCategoryIds ) This function will update all the requested categories and their child categories in Algolia. You can provide either a single category ID or an array of category IDs. A category ID should be either a string or an integer.
reindexSpecificProducts ( array | string | integer $updateProductIds ) This function will update all the requested products and their parent products in Algolia. You can provide either a single product ID or an array of product IDs. A product ID should be either a string or an integer.

Protected Methods

Method Description
_getResource ( ) : Mage_CatalogSearch_Model_Resource_Indexer_Fulltext
_isProductComposite ( integer $productId ) : boolean Check whether a product is composite.

Method Details

__construct() public method

public __construct ( )

_getResource() protected method

protected _getResource ( ) : Mage_CatalogSearch_Model_Resource_Indexer_Fulltext
return Mage_CatalogSearch_Model_Resource_Indexer_Fulltext

_isProductComposite() protected method

Check whether a product is composite.
protected _isProductComposite ( integer $productId ) : boolean
$productId integer
return boolean

reindexSpecificCategories() public method

This function will update all the requested categories and their child categories in Algolia. You can provide either a single category ID or an array of category IDs. A category ID should be either a string or an integer.
public reindexSpecificCategories ( array | string | integer $updateCategoryIds )
$updateCategoryIds array | string | integer

reindexSpecificProducts() public method

This function will update all the requested products and their parent products in Algolia. You can provide either a single product ID or an array of product IDs. A product ID should be either a string or an integer.
public reindexSpecificProducts ( array | string | integer $updateProductIds )
$updateProductIds array | string | integer

Property Details

$enableQueueMsg protected property

protected $enableQueueMsg

$engine protected property

protected Algolia_Algoliasearch_Model_Resource_Engine $engine
return Algolia_Algoliasearch_Model_Resource_Engine