always load details in the same query
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user