You are here

function Drupal_Solr_Query_Interface::set_solrsort in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 5.2 apachesolr.module \Drupal_Solr_Query_Interface::set_solrsort()
  2. 6 apachesolr.module \Drupal_Solr_Query_Interface::set_solrsort()

Set the solrsort.

Parameters

$field: The name of a field in the solr index that's an allowed sort.

$direction: 'asc' or 'desc'

1 method overrides Drupal_Solr_Query_Interface::set_solrsort()
Solr_Base_Query::set_solrsort in ./Solr_Base_Query.php
Set the solrsort.

File

./apachesolr.module, line 2490
Integration with the Apache Solr search application.

Class

Drupal_Solr_Query_Interface
The interface for all 'query' objects.

Code

function set_solrsort($field, $direction);