Adapt to new Solr config :

- category -> genre
- cover in solr
- producer -> producerCode
This commit is contained in:
Gilles Crettenand
2015-05-29 11:01:24 +02:00
parent 28b4b8a985
commit f9c85c73dd
3 changed files with 15 additions and 23 deletions

View File

@@ -184,9 +184,9 @@ class AudioBook extends DbMapping
}
/**
* Retrieve the list of all categories
* Retrieve the list of all genres
*/
public static function listOfCategories()
public static function ListOfGenres()
{
$sql = "SELECT
LTRIM(RTRIM(Code)) as code,

View File

@@ -25,12 +25,7 @@ class BookSearch
$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->addField('*');
$this->query->addParam('q.op', 'AND');
}