always load details in the same query

This commit is contained in:
Gilles Crettenand
2015-05-20 15:22:51 +02:00
parent bb7c99e190
commit c897f2c9c6
3 changed files with 114 additions and 312 deletions

View File

@@ -24,8 +24,14 @@ class BookSearch
$this->client = new SolrClient($options);
$this->query = new SolrQuery();
$this->query->setQuery('*:*');
$this->query->addField('id');
$this->query->addField('title');
$this->query->addField('author');
$this->query->addField('code');
$this->query->addField('category');
$this->query->addField('summary');
$this->query->addParam('q.op', 'AND');
}