protected function Solr_Base_Query::default_sorts in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 Solr_Base_Query.php \Solr_Base_Query::default_sorts()
- 6 Solr_Base_Query.php \Solr_Base_Query::default_sorts()
Returns a default list of sorts.
1 call to Solr_Base_Query::default_sorts()
File
- ./
Solr_Base_Query.php, line 285
Class
Code
protected function default_sorts() {
// The array keys must always be real Solr index fields.
return array(
'score' => array(
'title' => t('Relevancy'),
'default' => 'desc',
),
'sort_title' => array(
'title' => t('Title'),
'default' => 'asc',
),
'type' => array(
'title' => t('Type'),
'default' => 'asc',
),
'sort_name' => array(
'title' => t('Author'),
'default' => 'asc',
),
'created' => array(
'title' => t('Date'),
'default' => 'desc',
),
);
}