Example #1
0
 /**
  * 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 = [];
     if ($product->getHasOptions()) {
         $searchData = $this->_catalogProductOption->getSearchableData($product->getEntityId(), $product->getStoreId());
     }
     return $searchData;
 }