Exemplo n.º 1
0
 protected function _init()
 {
     parent::_init();
     // basic params
     $this->setQuery('*:*');
     $this->setStart(2)->setRows(20);
     $this->setFields(array('id', 'name', 'price'));
     $this->addSort('price', Solarium_Query_Select::SORT_ASC);
     // create a facet field instance and set options
     $facetSet = $this->getFacetSet();
     $facetSet->createFacetField('stock')->setField('inStock');
 }