public function __construct(Storefront_Resource_Product_Item_Interface $item, $category)
 {
     $this->addField(Zend_Search_Lucene_Field::keyword('productId', $item->productId, 'UTF-8'));
     $this->addField(Zend_Search_Lucene_Field::text('categories', $category, 'UTF-8'));
     $this->addField(Zend_Search_Lucene_Field::text('name', $item->name, 'UTF-8'));
     $this->addField(Zend_Search_Lucene_Field::unStored('description', $item->description, 'UTF-8'));
     $this->addField(Zend_Search_Lucene_Field::text('price', $this->_formatPrice($item->getPrice()), 'UTF-8'));
 }
 public function __construct(Storefront_Resource_Product_Item_Interface $product, $qty)
 {
     $this->productId = (int) $product->productId;
     $this->name = $product->name;
     $this->price = (double) $product->getPrice(false, false);
     $this->taxable = $product->taxable;
     $this->discountPercent = (int) $product->discountPercent;
     $this->qty = (int) $qty;
 }