private function initAttributes()
    {
        $attributeCollection = $this->attributeHelper->getAttributeCollection();
        $this->resourceModel->addIndexedFilterToAttributeCollection($attributeCollection);

        foreach ($attributeCollection as $attribute) {
            if ($this->canIndexAttribute($attribute)) {
                $attributeId = (int) $attribute->getId();
                $this->attributesById[$attributeId] = $attribute;
                $this->attributeIdsByTable[$attribute->getBackendTable()][] = $attributeId;

                $this->initField($attribute);
            }

            if ($attribute->getAttributeCode() === 'sku') {
                // SKU has no backend table.
                $this->initField($attribute);
            }
        }

        return $this;
    }
private function initAttributes()
    {
        $attributeCollection = $this->attributeHelper->getAttributeCollection();
        $this->resourceModel->addIndexedFilterToAttributeCollection($attributeCollection);

        foreach ($attributeCollection as $attribute) {
            if ($this->canIndexAttribute($attribute)) {
                $attributeId = (int) $attribute->getId();
                $this->attributesById[$attributeId] = $attribute;
                $this->attributeIdsByTable[$attribute->getBackendTable()][] = $attributeId;

                $this->initField($attribute);
            }

            if ($attribute->getAttributeCode() === 'sku') {
                // SKU has no backend table.
                $this->initField($attribute);
            }
        }

        return $this;
    }
private function initAttributes ( ) { $ attributeCollection = $ this -> attributeHelper -> getAttributeCollection ( ) ; $ this -> resourceModel -> addIndexedFilterToAttributeCollection ( $ attributeCollection ) ; foreach ( $ attributeCollection as $ attribute ) { if ( $ this -> canIndexAttribute ( $ attribute ) ) { $ attributeId = ( int ) $ attribute -> getId ( ) ; $ this -> attributesById [ $ attributeId ] = $ attribute ; $ this -> attributeIdsByTable [ $ attribute -> getBackendTable ( ) ] [ ] = $ attributeId ; $ this -> initField ( $ attribute ) ; } if ( $ attribute -> getAttributeCode ( ) === 'sku' ) { // SKU has no backend table. $ this -> initField ( $ attribute ) ; } } return $ this ; }
Init attributes used into ES.

@return \Smile\ElasticsuiteCatalog\Model\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData
Init attributes used into ES .