Package | Description |
---|---|
org.apache.solr.handler.component |
SearchComponent implementations for
use in SearchHandler |
org.apache.solr.search |
APIs and classes for parsing and processing search requests
|
Modifier and Type | Method and Description |
---|---|
SortSpec |
ResponseBuilder.getSortSpec() |
Modifier and Type | Method and Description |
---|---|
void |
ResponseBuilder.setSortSpec(SortSpec sort) |
Modifier and Type | Method and Description |
---|---|
SortSpec |
QParser.getSort(boolean useGlobalParams) |
SortSpec |
CursorMark.getSortSpec()
Returns the SortSpec used by this object.
|
static SortSpec |
QueryParsing.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 | 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
|
Constructor and Description |
---|
CursorMark(IndexSchema schema,
SortSpec sortSpec)
Generates an empty CursorMark bound for use with the
specified schema and
SortSpec . |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.