Java org.apache.solr.search SortSpecParsing fields, constructors, methods, implement or subclass

Example usage for Java org.apache.solr.search SortSpecParsing fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.solr.search SortSpecParsing.

The text is from its open source code.

Method

SortSpecparseSortSpec(String sortSpec, SolrQueryRequest req)

The form of the sort specification string currently parsed is:

 SortSpec ::= SingleSort [, SingleSort] SingleSort ::= <fieldname|function> SortDirection SortDirection ::= top | desc | bottom | asc 
Examples:
 score desc               #normal sort by score (will return null) weight bottom            #sort by weight ascending weight desc              #sort by weight descending height desc,weight desc  #sort by height descending, and use weight descending to break any ties height desc,weight asc   #sort by height descending, using weight ascending as a tiebreaker 
SortSpecparseSortSpec(String sortSpec, IndexSchema schema)

The form of the (function free) sort specification string currently parsed is:

 SortSpec ::= SingleSort [, SingleSort] SingleSort ::= <fieldname> SortDirection SortDirection ::= top | desc | bottom | asc 
Examples:
 score desc               #normal sort by score (will return null) weight bottom            #sort by weight ascending weight desc              #sort by weight descending height desc,weight desc  #sort by height descending, and use weight descending to break any ties height desc,weight asc   #sort by height descending, using weight ascending as a tiebreaker