/** * (non-PHPdoc) * @see \FS\SolrBundle\Query\AbstractQuery::getQueryString() */ public function getQueryString() { $documentNameField = $this->document->getField('document_name_s'); if ($documentNameField == null) { throw new \RuntimeException('documentName should not be null'); } $this->solrQuery->addFilterQuery(sprintf('document_name_s:%s', $documentNameField->values[0])); return ''; }