Class Mage_CatalogSearch_Model_Mysql4_Fulltext

Description

CatalogSearch Fulltext Index resource model

Located in /CatalogSearch/Model/Mysql4/Fulltext.php (line 34)

Mage_Core_Model_Resource_Abstract
   |
   --Mage_Core_Model_Mysql4_Abstract
      |
      --Mage_CatalogSearch_Model_Mysql4_Fulltext
Variable Summary
Method Summary
Mage_CatalogSearch_Model_Mysql4_Fulltext cleanIndex ([int $storeId = null], [int $productId = null])
string getSeparator ()
Mage_CatalogSearch_Model_Mysql4_Fulltext rebuildIndex ([int $storeId = null], [int|array $productIds = null])
Mage_CatalogSearch_Model_Mysql4_Fulltext updateCategoryIndex (array $productIds, array $categoryIds)
void _construct ()
mixed _getAttributeValue (int $attributeId, mixed $value,  $storeId)
array _getProductAttributes (int $storeId,  $productIds,  $atributeTypes)
array _getProductChildIds (int $productId, string $typeId)
Varien_Object _getProductEmulator ()
array _getSearchableAttributes ([ $backendType = null])
array _getSearchableProducts (int $storeId,  $staticFields, [array|int $productIds = null], [int $lastProductId = 0], [int $limit = 100])
string _getStoreDate (int $storeId, [string $date = null])
string _prepareProductIndex (array $indexData, array $productData,  $storeId)
Mage_CatalogSearch_Model_Mysql4_Fulltext _rebuildStoreIndex (int $storeId, [int|array $productIds = null])
Mage_CatalogSearch_Model_Mysql4_Fulltext _saveProductIndex (int $productId, int $storeId, string $index)
Mage_CatalogSearch_Model_Mysql4_Fulltext _saveProductIndexes (int $storeId, array $productIndexes)
Variables
array $_dates = array() (line 55)

Array of Zend_Date objects per store

  • access: protected
object $_engine = null (line 68)

Store search engine instance

  • access: protected
array $_productTypes = array() (line 62)

Product Type Instances cache

  • access: protected
array $_searchableAttributes = null (line 41)

Searchable attributes cache

  • access: protected
string $_separator = '|' (line 48)

Index values separator

  • access: protected

Inherited Variables

Inherited from Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::$_connections
Mage_Core_Model_Mysql4_Abstract::$_fieldsForUpdate
Mage_Core_Model_Mysql4_Abstract::$_idFieldName
Mage_Core_Model_Mysql4_Abstract::$_isPkAutoIncrement
Mage_Core_Model_Mysql4_Abstract::$_mainTable
Mage_Core_Model_Mysql4_Abstract::$_mainTableFields
Mage_Core_Model_Mysql4_Abstract::$_resourceModel
Mage_Core_Model_Mysql4_Abstract::$_resourcePrefix
Mage_Core_Model_Mysql4_Abstract::$_resources
Mage_Core_Model_Mysql4_Abstract::$_serializableFields
Mage_Core_Model_Mysql4_Abstract::$_tables
Mage_Core_Model_Mysql4_Abstract::$_uniqueFields
Mage_Core_Model_Mysql4_Abstract::$_useIsObjectNew

Inherited from Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::$_commitCallbacks
Methods
cleanIndex (line 299)

Delete search index data for store

  • access: public
Mage_CatalogSearch_Model_Mysql4_Fulltext cleanIndex ([int $storeId = null], [int $productId = null])
  • int $storeId: Store View Id
  • int $productId: Product Entity Id
getEavConfig (line 379)

Retrieve EAV Config Singleton

  • access: public
Mage_Eav_Model_Config getEavConfig ()
getSeparator (line 84)

Return options separator

  • access: public
string getSeparator ()
prepareResult (line 315)

Prepare results for query

  • access: public
rebuildIndex (line 112)

Regenerate search index for store(s)

  • access: public
Mage_CatalogSearch_Model_Mysql4_Fulltext rebuildIndex ([int $storeId = null], [int|array $productIds = null])
  • int $storeId: Store View Id
  • int|array $productIds: Product Entity Id(s)
resetSearchResults (line 273)

Reset search results

  • access: public
updateCategoryIndex (line 96)

Update category'es products indexes

  • access: public
Mage_CatalogSearch_Model_Mysql4_Fulltext updateCategoryIndex (array $productIds, array $categoryIds)
  • array $productIds
  • array $categoryIds
_construct (line 73)

Init resource model

  • access: protected
void _construct ()

Redefinition of:
Mage_Core_Model_Resource_Abstract::_construct()
Resource initialization
_getAttributeValue (line 631)

Retrieve attribute source value for search

  • access: protected
mixed _getAttributeValue (int $attributeId, mixed $value,  $storeId)
  • int $attributeId
  • mixed $value
  • $storeId
_getProductAttributes (line 459)

Load product(s) attributes

  • access: protected
array _getProductAttributes (int $storeId,  $productIds,  $atributeTypes)
  • int $storeId
  • array $productIds
  • array $atributeTypes
_getProductChildIds (line 516)

Return all product children ids

  • access: protected
array _getProductChildIds (int $productId, string $typeId)
  • int $productId: Product Entity Id
  • string $typeId: Super Product Link Type
_getProductEmulator (line 543)

Retrieve Product Emulator (Varien Object)

  • access: protected
Varien_Object _getProductEmulator ()
_getProductTypeInstance (line 497)

Retrieve Product Type Instance

  • access: protected
Mage_Catalog_Model_Product_Type_Abstract _getProductTypeInstance (string $typeId)
  • string $typeId
_getSearchableAttribute (line 432)

Retrieve searchable attribute by Id or code

  • access: protected
Mage_Eav_Model_Entity_Attribute _getSearchableAttribute (int|string $attribute)
  • int|string $attribute
_getSearchableAttributes (line 389)

Retrieve Searchable attributes

  • access: protected
array _getSearchableAttributes ([ $backendType = null])
  • $backendType
_getSearchableProducts (line 232)

Retrieve searchable products per store

  • access: protected
array _getSearchableProducts (int $storeId,  $staticFields, [array|int $productIds = null], [int $lastProductId = 0], [int $limit = 100])
  • int $storeId
  • array $staticFields
  • array|int $productIds
  • int $lastProductId
  • int $limit
_getStoreDate (line 696)

Retrieve Date value for store

  • access: protected
string _getStoreDate (int $storeId, [string $date = null])
  • int $storeId
  • string $date
_prepareProductIndex (line 557)

Prepare Fulltext index value for product

  • access: protected
string _prepareProductIndex (array $indexData, array $productData,  $storeId)
  • array $indexData
  • array $productData
  • $storeId
_rebuildStoreIndex (line 131)

Regenerate search index for specific store

  • access: protected
Mage_CatalogSearch_Model_Mysql4_Fulltext _rebuildStoreIndex (int $storeId, [int|array $productIds = null])
  • int $storeId: Store View Id
  • int|array $productIds: Product Entity Id
_saveProductIndex (line 666)

Save Product index

  • access: protected
Mage_CatalogSearch_Model_Mysql4_Fulltext _saveProductIndex (int $productId, int $storeId, string $index)
  • int $productId
  • int $storeId
  • string $index
_saveProductIndexes (line 681)

Save Multiply Product indexes

  • access: protected
Mage_CatalogSearch_Model_Mysql4_Fulltext _saveProductIndexes (int $storeId, array $productIndexes)
  • int $storeId
  • array $productIndexes

Inherited Methods

Inherited From Mage_Core_Model_Mysql4_Abstract

Mage_Core_Model_Mysql4_Abstract::addUniqueField()
Mage_Core_Model_Mysql4_Abstract::afterLoad()
Mage_Core_Model_Mysql4_Abstract::delete()
Mage_Core_Model_Mysql4_Abstract::forsedSave()
Mage_Core_Model_Mysql4_Abstract::getChecksum()
Mage_Core_Model_Mysql4_Abstract::getIdFieldName()
Mage_Core_Model_Mysql4_Abstract::getMainTable()
Mage_Core_Model_Mysql4_Abstract::getReadConnection()
Mage_Core_Model_Mysql4_Abstract::getTable()
Mage_Core_Model_Mysql4_Abstract::getUniqueFields()
Mage_Core_Model_Mysql4_Abstract::getValueTable()
Mage_Core_Model_Mysql4_Abstract::hasDataChanged()
Mage_Core_Model_Mysql4_Abstract::load()
Mage_Core_Model_Mysql4_Abstract::resetUniqueField()
Mage_Core_Model_Mysql4_Abstract::save()
Mage_Core_Model_Mysql4_Abstract::unserializeFields()
Mage_Core_Model_Mysql4_Abstract::_afterDelete()
Mage_Core_Model_Mysql4_Abstract::_afterLoad()
Mage_Core_Model_Mysql4_Abstract::_afterSave()
Mage_Core_Model_Mysql4_Abstract::_beforeDelete()
Mage_Core_Model_Mysql4_Abstract::_beforeSave()
Mage_Core_Model_Mysql4_Abstract::_checkUnique()
Mage_Core_Model_Mysql4_Abstract::_getConnection()
Mage_Core_Model_Mysql4_Abstract::_getLoadSelect()
Mage_Core_Model_Mysql4_Abstract::_getReadAdapter()
Mage_Core_Model_Mysql4_Abstract::_getWriteAdapter()
Mage_Core_Model_Mysql4_Abstract::_init()
Mage_Core_Model_Mysql4_Abstract::_initUniqueFields()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForSave()
Mage_Core_Model_Mysql4_Abstract::_prepareDataForTable()
Mage_Core_Model_Mysql4_Abstract::_prepareValueForSave()
Mage_Core_Model_Mysql4_Abstract::_serializeFields()
Mage_Core_Model_Mysql4_Abstract::_setMainTable()
Mage_Core_Model_Mysql4_Abstract::_setResource()

Inherited From Mage_Core_Model_Resource_Abstract

Mage_Core_Model_Resource_Abstract::__construct()
Mage_Core_Model_Resource_Abstract::addCommitCallback()
Mage_Core_Model_Resource_Abstract::beginTransaction()
Mage_Core_Model_Resource_Abstract::commit()
Mage_Core_Model_Resource_Abstract::formatDate()
Mage_Core_Model_Resource_Abstract::mktime()
Mage_Core_Model_Resource_Abstract::rollBack()
Mage_Core_Model_Resource_Abstract::_construct()
Mage_Core_Model_Resource_Abstract::_getReadAdapter()
Mage_Core_Model_Resource_Abstract::_getWriteAdapter()
Mage_Core_Model_Resource_Abstract::_serializeField()
Mage_Core_Model_Resource_Abstract::_unserializeField()
Class Constants

Documentation generated on Fri, 11 Feb 2011 17:03:47 +0200 by phpDocumentor 1.4.3