addIndexedFilterToAttributeCollection() публичный Метод

Allow to filter an attribute collection on attributes that are indexed into the search engine.
public addIndexedFilterToAttributeCollection ( Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection $attributeCollection ) : Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection
$attributeCollection Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection Attribute collection (not loaded).
Результат Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection
 /**
  * Init attributes used into ES.
  *
  * @return \Smile\ElasticsuiteCatalog\Model\Eav\Indexer\Fulltext\Datasource\AbstractAttributeData
  */
 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);
         }
     }
     return $this;
 }