public function addData($storeId, array $indexData)
{
$categoryIds = array_keys($indexData);
foreach ($this->attributeIdsByTable as $backendTable => $attributeIds) {
$attributesData = $this->loadAttributesRawData($storeId, $categoryIds, $backendTable, $attributeIds);
foreach ($attributesData as $row) {
$productId = (int) $row['entity_id'];
$attribute = $this->attributesById[$row['attribute_id']];
$indexValues = $this->attributeHelper->prepareIndexValue($attribute, $storeId, $row['value']);
$indexData[$productId] += $indexValues;
}
}
return $indexData;
}