public function getSearchTerms(ProductInterface $product) { $data = array(); $data['name'] = $product->getName(); return $data; }
protected function buildProductDescriptions(ProductInterface $product) { $product->setDescription('Brief description of ' . $product->getName(), 'brief'); $product->setDescription('Extended description of ' . $product->getName(), 'extended'); $product->setDescription('Big and detailed description of ' . $product->getName(), 'detail'); }