public function getQuery() { if (null === $this->_query) { $this->_query = Query::create(''); } return $this->_query; }
/** * {@inheritDoc} * * @api */ public function getItems($offset, $limit) { $query = $this->search->getQuery(); $query->setFrom($offset); $query->setSize($limit); return $this->search->search()->getResults(); }