public class SortSpecParsing extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DOCID |
static String |
SCORE |
Constructor and Description |
---|
SortSpecParsing() |
Modifier and Type | Method and Description |
---|---|
static SortSpec |
parseSortSpec(String sortSpec,
IndexSchema schema)
The form of the (function free) sort specification string currently parsed is:
|
static SortSpec |
parseSortSpec(String sortSpec,
SolrQueryRequest req)
The form of the sort specification string currently parsed is:
|
public static final String DOCID
public static final String SCORE
public static SortSpec parseSortSpec(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 | ascExamples:
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
public static SortSpec parseSortSpec(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 | ascExamples:
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
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.