You are here

function Drupal_Solr_Query_Interface::set_solrsort in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 apachesolr.module \Drupal_Solr_Query_Interface::set_solrsort()
  2. 6.2 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 1829
Integration with the Apache Solr search application.

Class

Drupal_Solr_Query_Interface
The interface for all 'query' objects.

Code

function set_solrsort($field, $direction);