/** * Retrieve additional searchable data from type instance * Using based on product id and store_id data * * @param \Magento\Catalog\Model\Product $product * @return array */ public function getSearchableData($product) { $searchData = parent::getSearchableData($product); $linkSearchData = $this->_createLink()->getSearchableData($product->getId(), $product->getStoreId()); if ($linkSearchData) { $searchData = array_merge($searchData, $linkSearchData); } $sampleSearchData = $this->_createSample()->getSearchableData($product->getId(), $product->getStoreId()); if ($sampleSearchData) { $searchData = array_merge($searchData, $sampleSearchData); } return $searchData; }