Smile\ElasticsuiteCatalog\Model\Category\Indexer\Fulltext\Datasource\AttributeData::addData PHP Method

addData() public method

public addData ( $storeId, array $indexData )
$indexData array
    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;
    }
AttributeData